rs4854 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ rs4854_cfg_setup()

void rs4854_cfg_setup ( rs4854_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.

◆ rs4854_de_pin_set()

void rs4854_de_pin_set ( rs4854_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.

◆ rs4854_generic_read()

int32_t rs4854_generic_read ( rs4854_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

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

◆ rs4854_generic_write()

void rs4854_generic_write ( rs4854_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

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

◆ rs4854_init()

RS4854_RETVAL rs4854_init ( rs4854_t * ctx,
rs4854_cfg_t * cfg )

Initialization function.

Parameters
rs4854Click object.
cfgClick configuration structure.

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

◆ rs4854_re_pin_set()

void rs4854_re_pin_set ( rs4854_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.

◆ rs4854_rx_disable()

void rs4854_rx_disable ( rs4854_t * ctx)

Rx disable function.

Parameters
ctxClick object.

@description This function disable rx.

◆ rs4854_rx_enable()

void rs4854_rx_enable ( rs4854_t * ctx)

Rx enable function.

Parameters
ctxClick object.

@description This function enable rx.

◆ rs4854_tx_disable()

void rs4854_tx_disable ( rs4854_t * ctx)

Tx disable function.

Parameters
ctxClick object.

@description This function disable tx.

◆ rs4854_tx_enable()

void rs4854_tx_enable ( rs4854_t * ctx)

Tx enable function.

Parameters
ctxClick object.

@description This function enable tx.