rs485isolator
2.0.0.0
|
This file contains API for RS485 Isolator Click driver. More...
#include "drv_digital_out.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | rs485isolator_t |
Click ctx object definition. More... | |
struct | rs485isolator_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RS485ISOLATOR_MAP_MIKROBUS(cfg, mikrobus) |
#define | RS485ISOLATOR_RETVAL uint8_t |
#define | RS485ISOLATOR_OK 0x00 |
#define | RS485ISOLATOR_INIT_ERROR 0xFF |
#define | RS485ISOLATOR_RECEIVER_ENABLE 0 |
#define | RS485ISOLATOR_RECEIVER_DISABLE 1 |
#define | RS485ISOLATOR_DRIVER_ENABLE 1 |
#define | RS485ISOLATOR_DRIVER_DISABLE 0 |
Typedefs | |
typedef uart_data_t | rs485isolator_data_t |
Functions | |
void | rs485isolator_cfg_setup (rs485isolator_cfg_t *cfg) |
Config Object Initialization function. More... | |
RS485ISOLATOR_RETVAL | rs485isolator_init (rs485isolator_t *ctx, rs485isolator_cfg_t *cfg) |
Initialization function. More... | |
void | rs485isolator_generic_multi_write (rs485isolator_t *ctx, rs485isolator_data_t *data_buf, uart_length_t len) |
Generic multi write function. More... | |
rs485isolator_data_t | rs485isolator_generic_single_read (rs485isolator_t *ctx) |
Generic single read function. More... | |
void | rs485isolator_generic_single_write (rs485isolator_t *ctx, rs485isolator_data_t tx_data) |
Generic single write function. More... | |
void | rs485isolator_set_receiver_mode (rs485isolator_t *ctx, uint8_t state) |
Set receiver state. More... | |
void | rs485isolator_set_driver_mode (rs485isolator_t *ctx, uint8_t state) |
Set driver state. More... | |
This file contains API for RS485 Isolator Click driver.