rs485isolator 2.0.0.0
rs485isolator.h File Reference

This file contains API for RS485 Isolator 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  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_OK   0
 
#define RS485ISOLATOR_ERROR   -1
 
#define RS485ISOLATOR_RECEIVER_ENABLE   0
 
#define RS485ISOLATOR_RECEIVER_DISABLE   1
 
#define RS485ISOLATOR_DRIVER_ENABLE   1
 
#define RS485ISOLATOR_DRIVER_DISABLE   0
 
#define RS485ISOLATOR_DRV_RX_BUFFER_SIZE   200
 
#define RS485ISOLATOR_DRV_TX_BUFFER_SIZE   200
 

Functions

void rs485isolator_cfg_setup (rs485isolator_cfg_t *cfg)
 Config Object Initialization function.
 
err_t rs485isolator_init (rs485isolator_t *ctx, rs485isolator_cfg_t *cfg)
 Initialization function.
 
void rs485isolator_generic_write (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t len)
 Generic write function.
 
err_t rs485isolator_generic_read (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t max_len)
 Generic read function.
 
void rs485isolator_set_receiver_mode (rs485isolator_t *ctx, uint8_t state)
 Set receiver state.
 
void rs485isolator_set_driver_mode (rs485isolator_t *ctx, uint8_t state)
 Set driver state.
 

Detailed Description

This file contains API for RS485 Isolator Click driver.