rs4853v3 2.0.0.0
rs4853v3.h File Reference

This file contains API for RS485 3V3 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  rs4853v3_t
 RS485 3V3 Click context object. More...
 
struct  rs4853v3_cfg_t
 RS485 3V3 Click configuration object. More...
 

Macros

#define DRV_BUFFER_SIZE   200
 RS485 3V3 driver buffer size.
 
#define RS4853V3_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  rs4853v3_return_value_t { RS4853V3_OK = 0 , RS4853V3_ERROR = -1 }
 RS485 3V3 Click return value data. More...
 

Functions

void rs4853v3_cfg_setup (rs4853v3_cfg_t *cfg)
 RS485 3V3 configuration object setup function.
 
err_t rs4853v3_init (rs4853v3_t *ctx, rs4853v3_cfg_t *cfg)
 RS485 3V3 initialization function.
 
void rs4853v3_generic_write (rs4853v3_t *ctx, char *data_buf, uint16_t len)
 RS485 3V3 data writing function.
 
err_t rs4853v3_generic_read (rs4853v3_t *ctx, char *data_buf, uint16_t max_len)
 RS485 3V3 data reading function.
 
void rs4853v3_send_command (rs4853v3_t *ctx, char *command)
 Send command.
 

Detailed Description

This file contains API for RS485 3V3 Click Driver.

Enumeration Type Documentation

◆ rs4853v3_return_value_t

RS485 3V3 Click return value data.

Predefined enum values for driver return values.

Enumerator
RS4853V3_OK 
RS4853V3_ERROR