obdii
2.0.0.0
|
Functions | |
void | obdii_cfg_setup (obdii_cfg_t *cfg) |
Config Object Initialization function. More... | |
OBDII_RETVAL | obdii_init (obdii_t *ctx, obdii_cfg_t *cfg) |
Initialization function. More... | |
void | obdii_module_reset (obdii_t *ctx) |
Reset module. More... | |
uint8_t | obdii_get_int_pin (obdii_t *ctx) |
Get INT pin state. More... | |
void | obdii_generic_write (obdii_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int32_t | obdii_generic_read (obdii_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
void | obdii_send_command (obdii_t *ctx, char *command) |
Function for send command. More... | |
void obdii_cfg_setup | ( | obdii_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t obdii_generic_read | ( | obdii_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
Generic read function.
obdii | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void obdii_generic_write | ( | obdii_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
Generic write function.
obdii | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t obdii_get_int_pin | ( | obdii_t * | ctx | ) |
Get INT pin state.
obdii | Click object. |
OBDII_RETVAL obdii_init | ( | obdii_t * | ctx, |
obdii_cfg_t * | cfg | ||
) |
Initialization function.
obdii | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void obdii_module_reset | ( | obdii_t * | ctx | ) |
Reset module.
obdii | Click object. |
void obdii_send_command | ( | obdii_t * | ctx, |
char * | command | ||
) |
Function for send command.
ctx | Click object. |
command | Data to be send. |