rs4854 2.0.0.0
|
Functions | |
void | rs4854_cfg_setup (rs4854_cfg_t *cfg) |
Config Object Initialization function. | |
RS4854_RETVAL | rs4854_init (rs4854_t *ctx, rs4854_cfg_t *cfg) |
Initialization function. | |
void | rs4854_generic_write (rs4854_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rs4854_generic_read (rs4854_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs4854_rx_disable (rs4854_t *ctx) |
Rx disable function. | |
void | rs4854_rx_enable (rs4854_t *ctx) |
Rx enable function. | |
void | rs4854_tx_disable (rs4854_t *ctx) |
Tx disable function. | |
void | rs4854_tx_enable (rs4854_t *ctx) |
Tx enable function. | |
void | rs4854_re_pin_set (rs4854_t *ctx, uint8_t pin_state) |
Sets RE pin to high or low state. | |
void | rs4854_de_pin_set (rs4854_t *ctx, uint8_t pin_state) |
Sets DE pin to high or low state. | |
void rs4854_cfg_setup | ( | rs4854_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void rs4854_de_pin_set | ( | rs4854_t * | ctx, |
uint8_t | pin_state ) |
Sets DE pin to high or low state.
pin_state | pin state |
@description This function sets state of the de pin.
int32_t rs4854_generic_read | ( | rs4854_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
rs4854 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs4854_generic_write | ( | rs4854_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
rs4854 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
RS4854_RETVAL rs4854_init | ( | rs4854_t * | ctx, |
rs4854_cfg_t * | cfg ) |
Initialization function.
rs4854 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs4854_re_pin_set | ( | rs4854_t * | ctx, |
uint8_t | pin_state ) |
Sets RE pin to high or low state.
pin_state | pin state |
@description This function sets state of the re pin.
void rs4854_rx_disable | ( | rs4854_t * | ctx | ) |
Rx disable function.
ctx | Click object. |
@description This function disable rx.
void rs4854_rx_enable | ( | rs4854_t * | ctx | ) |
Rx enable function.
ctx | Click object. |
@description This function enable rx.
void rs4854_tx_disable | ( | rs4854_t * | ctx | ) |
Tx disable function.
ctx | Click object. |
@description This function disable tx.
void rs4854_tx_enable | ( | rs4854_t * | ctx | ) |
Tx enable function.
ctx | Click object. |
@description This function enable tx.