rs485isolator 2.0.0.0
|
Functions | |
void | rs485isolator_cfg_setup (rs485isolator_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | rs485isolator_init (rs485isolator_t *ctx, rs485isolator_cfg_t *cfg) |
Initialization function. | |
void | rs485isolator_generic_write (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
err_t | rs485isolator_generic_read (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs485isolator_set_receiver_mode (rs485isolator_t *ctx, uint8_t state) |
Set receiver state. | |
void | rs485isolator_set_driver_mode (rs485isolator_t *ctx, uint8_t state) |
Set driver state. | |
void rs485isolator_cfg_setup | ( | rs485isolator_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t rs485isolator_generic_read | ( | rs485isolator_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs485isolator_generic_write | ( | rs485isolator_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
err_t rs485isolator_init | ( | rs485isolator_t * | ctx, |
rs485isolator_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void rs485isolator_set_driver_mode | ( | rs485isolator_t * | ctx, |
uint8_t | state ) |
Set driver state.
ctx | Click object. |
state | Select state (Enable / Disable) |
void rs485isolator_set_receiver_mode | ( | rs485isolator_t * | ctx, |
uint8_t | state ) |
Set receiver state.
ctx | Click object. |
state | Select state (Enable / Disable) |