tmrmixsens 2.0.0.0
tmrmixsens.h File Reference

This file contains API for TMR MIX SENS Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  tmrmixsens_t
 Click ctx object definition. More...
 
struct  tmrmixsens_cfg_t
 Click configuration structure definition. More...
 

Macros

#define TMRMIXSENS_MAP_MIKROBUS(cfg, mikrobus)
 
#define TMRMIXSENS_RETVAL   uint8_t
 
#define TMRMIXSENS_OK   0x00
 
#define TMRMIXSENS_INIT_ERROR   0xFF
 
#define TMRMIXSENS_SOUTH_POLE   0
 
#define TMRMIXSENS_NORTH_POLE   1
 

Typedefs

typedef uint16_t tmrmixsens_data_t
 Analog data type.
 

Functions

void tmrmixsens_cfg_setup (tmrmixsens_cfg_t *cfg)
 Config Object Initialization function.
 
TMRMIXSENS_RETVAL tmrmixsens_init (tmrmixsens_t *ctx, tmrmixsens_cfg_t *cfg)
 Initialization function.
 
tmrmixsens_data_t tmrmixsens_generic_read (tmrmixsens_t *ctx)
 Generic read function.
 
uint8_t tmrmixsens_get_omnipolar (tmrmixsens_t *ctx)
 Get state of the omnipolar ( OMN ) pin function.
 
uint8_t tmrmixsens_get_bipolar (tmrmixsens_t *ctx)
 Get state of the bipolar ( BI ) pin function.
 

Detailed Description

This file contains API for TMR MIX SENS Click driver.