rs4858 2.1.0.0
|
This file contains API for RS485 8 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 | rs4858_t |
RS485 8 Click context object. More... | |
struct | rs4858_cfg_t |
RS485 8 Click configuration object. More... | |
Macros | |
#define | RS4858_TX_DRV_BUFFER_SIZE 100 |
RS485 8 driver buffer size. | |
#define | RS4858_RX_DRV_BUFFER_SIZE 300 |
#define | RS4858_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | rs4858_return_value_t { RS4858_OK = 0 , RS4858_ERROR = -1 } |
RS485 8 Click return value data. More... | |
Functions | |
void | rs4858_cfg_setup (rs4858_cfg_t *cfg) |
RS485 8 configuration object setup function. | |
err_t | rs4858_init (rs4858_t *ctx, rs4858_cfg_t *cfg) |
RS485 8 initialization function. | |
void | rs4858_default_cfg (rs4858_t *ctx) |
RS485 8 default configuration function. | |
err_t | rs4858_generic_write (rs4858_t *ctx, uint8_t *data_in, uint16_t len) |
RS485 8 data writing function. | |
err_t | rs4858_generic_read (rs4858_t *ctx, uint8_t *data_out, uint16_t len) |
RS485 8 data reading function. | |
void | rs4858_enable_device (rs4858_t *ctx) |
RS485 8 enable the device function. | |
void | rs4858_disable_device (rs4858_t *ctx) |
RS485 8 disable the device function. | |
This file contains API for RS485 8 Click Driver.