rs4856  2.0.0.0
Functions
Public function

Functions

void rs4856_cfg_setup (rs4856_cfg_t *cfg)
 Config Object Initialization function. More...
 
RS4856_RETVAL rs4856_init (rs4856_t *ctx, rs4856_cfg_t *cfg)
 Initialization function. More...
 
void rs4856_generic_write (rs4856_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int16_t rs4856_generic_read (rs4856_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
void rs4856_re_pin_set (rs4856_t *ctx, uint8_t pin_state)
 Sets RE pin to high or low state. More...
 
void rs4856_de_pin_set (rs4856_t *ctx, uint8_t pin_state)
 Sets DE pin to high or low state. More...
 
void rs4856_send_command (rs4856_t *ctx, char *command)
 

Detailed Description

Function Documentation

◆ rs4856_cfg_setup()

void rs4856_cfg_setup ( rs4856_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ rs4856_de_pin_set()

void rs4856_de_pin_set ( rs4856_t ctx,
uint8_t  pin_state 
)

Sets DE pin to high or low state.

Parameters
pin_statepin state

@description This function sets state of the de pin.

◆ rs4856_generic_read()

int16_t rs4856_generic_read ( rs4856_t ctx,
char *  data_buf,
uint16_t  max_len 
)

Generic read function.

Parameters
rs4856Click object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ rs4856_generic_write()

void rs4856_generic_write ( rs4856_t ctx,
char *  data_buf,
uint16_t  len 
)

Generic write function.

Parameters
rs4856Click object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ rs4856_init()

RS4856_RETVAL rs4856_init ( rs4856_t ctx,
rs4856_cfg_t cfg 
)

Initialization function.

Parameters
rs4856Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ rs4856_re_pin_set()

void rs4856_re_pin_set ( rs4856_t ctx,
uint8_t  pin_state 
)

Sets RE pin to high or low state.

Parameters
pin_statepin state

@description This function sets state of the re pin.

◆ rs4856_send_command()

void rs4856_send_command ( rs4856_t ctx,
char *  command 
)