rs4852 2.0.0.0
|
Functions | |
void | rs4852_cfg_setup (rs4852_cfg_t *cfg) |
Config Object Initialization function. | |
RS4852_RETVAL | rs4852_init (rs4852_t *ctx, rs4852_cfg_t *cfg) |
Initialization function. | |
void | rs4852_generic_write (rs4852_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rs4852_generic_read (rs4852_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs4852_set_de_pin (rs4852_t *ctx, uint8_t state) |
Set DE ( cs ) pin state. | |
void | rs4852_set_re_pin (rs4852_t *ctx, uint8_t state) |
Set RE ( reset ) pin state. | |
void rs4852_cfg_setup | ( | rs4852_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t rs4852_generic_read | ( | rs4852_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
rs4852 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs4852_generic_write | ( | rs4852_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
rs4852 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
RS4852_RETVAL rs4852_init | ( | rs4852_t * | ctx, |
rs4852_cfg_t * | cfg ) |
Initialization function.
rs4852 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs4852_set_de_pin | ( | rs4852_t * | ctx, |
uint8_t | state ) |
Set DE ( cs ) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |
void rs4852_set_re_pin | ( | rs4852_t * | ctx, |
uint8_t | state ) |
Set RE ( reset ) pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |