You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
549 B
20 lines
549 B
|
1 month ago
|
#ifndef APP_OWI_SERVICE_H
|
||
|
|
#define APP_OWI_SERVICE_H
|
||
|
|
|
||
|
|
#include "r_cg_macrodriver.h"
|
||
|
|
#include "owi.h"
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
uint8_t ok;
|
||
|
|
uint8_t timeout;
|
||
|
|
uint16_t read_len;
|
||
|
|
uint8_t data[OWI_IO_MAX_BYTES];
|
||
|
|
uint16_t timeout_byte_index;
|
||
|
|
uint8_t timeout_bit_index;
|
||
|
|
} app_owi_result_t;
|
||
|
|
|
||
|
|
app_owi_result_t app_owi_read_basic(uint8_t id, int length);
|
||
|
|
app_owi_result_t app_owi_write_basic(uint8_t id, const uint8_t *tx_data, uint8_t tx_len);
|
||
|
|
app_owi_result_t app_owi_write_t_basic(uint8_t id, const uint8_t *tx_data, uint8_t tx_len);
|
||
|
|
|
||
|
|
#endif
|