iso9141
2.0.0.0
|
API for configuring and manipulating ISO 9141 Click driver. More...
Modules | |
ISO 9141 Device Settings | |
Settings for registers of ISO 9141 Click driver. | |
ISO 9141 MikroBUS Map | |
MikroBUS pin mapping of ISO 9141 Click driver. | |
Functions | |
void | iso9141_cfg_setup (iso9141_cfg_t *cfg) |
ISO 9141 configuration object setup function. More... | |
err_t | iso9141_init (iso9141_t *ctx, iso9141_cfg_t *cfg) |
ISO 9141 initialization function. More... | |
err_t | iso9141_generic_write (iso9141_t *ctx, char *data_buf, uint16_t len) |
ISO 9141 data writing function. More... | |
err_t | iso9141_generic_read (iso9141_t *ctx, char *data_buf, uint16_t max_len) |
ISO 9141 data reading function. More... | |
err_t | iso9141_send_data (iso9141_t *ctx, char *tx_data) |
ISO 9141 send data function. More... | |
API for configuring and manipulating ISO 9141 Click driver.
void iso9141_cfg_setup | ( | iso9141_cfg_t * | cfg | ) |
ISO 9141 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See iso9141_cfg_t object definition for detailed explanation. |
err_t iso9141_generic_read | ( | iso9141_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
ISO 9141 data reading function.
This function reads a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See iso9141_t object definition for detailed explanation. |
[out] | data_buf | : Output read data. |
[in] | max_len | : Number of bytes to be read. |
>0
- Number of data bytes read, <=0
- Error/Empty Ring buffer.err_t iso9141_generic_write | ( | iso9141_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
ISO 9141 data writing function.
This function writes a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See iso9141_t object definition for detailed explanation. |
[in] | data_buf | : Data buffer for sending. |
[in] | len | : Number of bytes for sending. |
>=0
- Success, <0
- Error.err_t iso9141_init | ( | iso9141_t * | ctx, |
iso9141_cfg_t * | cfg | ||
) |
ISO 9141 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See iso9141_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See iso9141_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t iso9141_send_data | ( | iso9141_t * | ctx, |
char * | tx_data | ||
) |
ISO 9141 send data function.
This function send data.
[in] | ctx | : Click context object. See #canbus_t object definition for detailed explanation. |
[out] | tx_data | : Output read data. |
>0
- Number of data bytes read, <=0
- Error/Empty Ring buffer.