c420mat 2.0.0.0
c420mat.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  c420mat_t
 Click ctx object definition. More...
 
struct  c420mat_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C420MAT_MAP_MIKROBUS(cfg, mikrobus)
 
#define C420MAT_RETVAL   uint8_t
 
#define C420MAT_OK   0x00
 
#define C420MAT_INIT_ERROR   0xFF
 

Functions

void c420mat_cfg_setup (c420mat_cfg_t *cfg)
 Config Object Initialization function.
 
C420MAT_RETVAL c420mat_init (c420mat_t *ctx, c420mat_cfg_t *cfg)
 Initialization function.
 
void c420mat_generic_transfer (c420mat_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void c420mat_dac_output (c420mat_t *ctx, uint16_t value_dac)
 c420mat_dac_output.
 
void c420mat_set_i_out (c420mat_t *ctx, uint8_t i_out)
 t40ma_set_vout.
 

Detailed Description

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