c420mar 2.0.0.0
c420mar.h File Reference

This file contains API for 4-20 mA R Click driver. More...

#include "drv_digital_out.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  c420mar_t
 Click ctx object definition. More...
 
struct  c420mar_cfg_t
 Click configuration structure definition. More...
 

Macros

#define c420MAR_MAP_MIKROBUS(cfg, mikrobus)
 
#define c420MAR_RETVAL   uint8_t
 
#define c420MAR_OK   0x00
 
#define c420MAR_INIT_ERROR   0xFF
 

Functions

void c420mar_cfg_setup (c420mar_cfg_t *cfg)
 Config Object Initialization function.
 
c420MAR_RETVAL c420mar_init (c420mar_t *ctx, c420mar_cfg_t *cfg)
 Initialization function.
 
void c420mar_generic_transfer (c420mar_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
float c420mar_read_data (c420mar_t *ctx)
 Read data function.
 

Detailed Description

This file contains API for 4-20 mA R Click driver.