rs4854 2.0.0.0
|
This file contains API for RS485 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | rs4854_t |
Click ctx object definition. More... | |
struct | rs4854_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RS4854_MAP_MIKROBUS(cfg, mikrobus) |
#define | RS4854_RETVAL uint8_t |
#define | RS4854_OK 0x00 |
#define | RS4854_INIT_ERROR 0xFF |
#define | DRV_RX_BUFFER_SIZE 500 |
#define | RS4854_PIN_STATE_LOW 0 |
#define | RS4854_PIN_STATE_HIGH 1 |
Typedefs | |
typedef uint8_t | rs4854_error_t |
Error type. | |
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. | |
This file contains API for RS485 4 Click driver.