rs485isolator2 2.0.0.0
|
Functions | |
void | rs485isolator2_cfg_setup (rs485isolator2_cfg_t *cfg) |
Config Object Initialization function. | |
RS485ISOLATOR2_RETVAL | rs485isolator2_init (rs485isolator2_t *ctx, rs485isolator2_cfg_t *cfg) |
Initialization function. | |
void | rs485isolator2_set_de_pin (rs485isolator2_t *ctx, uint8_t state) |
Set DE ( cs ) pin state. | |
void | rs485isolator2_set_re_pin (rs485isolator2_t *ctx, uint8_t state) |
Set RE ( reset ) pin state. | |
void | rs485isolator2_set_ind_pin (rs485isolator2_t *ctx, uint8_t state) |
Get IND (int) pin state. | |
void | rs485isolator2_set_inr_pin (rs485isolator2_t *ctx, uint8_t state) |
Set INR ( pwm ) pin state. | |
void | rs485isolator2_generic_write (rs485isolator2_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rs485isolator2_generic_read (rs485isolator2_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs485isolator2_send_bit_by_bit (rs485isolator2_t *ctx, char *command) |
Bit by bit write function. | |
void rs485isolator2_cfg_setup | ( | rs485isolator2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t rs485isolator2_generic_read | ( | rs485isolator2_t * | ctx, |
char * | 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 rs485isolator2_generic_write | ( | rs485isolator2_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
RS485ISOLATOR2_RETVAL rs485isolator2_init | ( | rs485isolator2_t * | ctx, |
rs485isolator2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs485isolator2_send_bit_by_bit | ( | rs485isolator2_t * | ctx, |
char * | command ) |
Bit by bit write function.
ctx | Click object. |
command | Data buffer for sends. |
void rs485isolator2_set_de_pin | ( | rs485isolator2_t * | ctx, |
uint8_t | state ) |
Set DE ( cs ) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |
void rs485isolator2_set_ind_pin | ( | rs485isolator2_t * | ctx, |
uint8_t | state ) |
Get IND (int) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |
void rs485isolator2_set_inr_pin | ( | rs485isolator2_t * | ctx, |
uint8_t | state ) |
Set INR ( pwm ) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |
void rs485isolator2_set_re_pin | ( | rs485isolator2_t * | ctx, |
uint8_t | state ) |
Set RE ( reset ) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |