Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_sensorif.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sensorif_callbacks
 

Macros

#define DECIMAL_MASK_FOUR_BITS   0x0F
 
#define DECIMAL_MASK_TWO_BITS   0x03
 
#define I2C_PORTNUM   1
 
#define SPI_PORTNUM   1
 
#define SENSORIF_AN_PIN   36
 
#define SENSORIF_RST_PIN   6
 
#define SENSORIF_CS_PIN   34
 
#define SENSORIF_SCK_PIN   33
 
#define SENSORIF_MISO_PIN   32
 
#define SENSORIF_MOSI_PIN   31
 
#define SENSORIF_PWM_PIN   35
 
#define SENSORIF_INT_PIN   5
 
#define SENSORIF_SCL_PIN   2
 
#define SENSORIF_SDA_PIN   4
 

Typedefs

typedef enum dvbd_sensorif_type dvbd_sensorif_type
 

Enumerations

enum  dvbd_sensorif_type {
  STYPE_NONE = 0 , STYPE_SI7021 = 1 , STYPE_LTR303ALS = 2 , STYPE_MAX30205 = 3 ,
  STYPE_TMP102 = 4
}
 

Functions

void select_sensorif (sensorif_callbacks *callback, dvbd_sensorif_type dev_type, void(*handler)())
 
void SENSORIF_Handler_SI7021 (void)
 SENSORIF Handler Example for SI7021. More...
 
void SENSORIF_Handler_LTR303ALS (void)
 
void SENSORIF_Handler_MAX30205 (void)
 
void SENSORIF_Handler_TMP102 (void)
 SENSORIF Handler Example for TMP102. More...
 

Macro Definition Documentation

◆ DECIMAL_MASK_FOUR_BITS

#define DECIMAL_MASK_FOUR_BITS   0x0F

◆ DECIMAL_MASK_TWO_BITS

#define DECIMAL_MASK_TWO_BITS   0x03

◆ I2C_PORTNUM

#define I2C_PORTNUM   1

◆ SENSORIF_AN_PIN

#define SENSORIF_AN_PIN   36

◆ SENSORIF_CS_PIN

#define SENSORIF_CS_PIN   34

◆ SENSORIF_INT_PIN

#define SENSORIF_INT_PIN   5

◆ SENSORIF_MISO_PIN

#define SENSORIF_MISO_PIN   32

◆ SENSORIF_MOSI_PIN

#define SENSORIF_MOSI_PIN   31

◆ SENSORIF_PWM_PIN

#define SENSORIF_PWM_PIN   35

◆ SENSORIF_RST_PIN

#define SENSORIF_RST_PIN   6

◆ SENSORIF_SCK_PIN

#define SENSORIF_SCK_PIN   33

◆ SENSORIF_SCL_PIN

#define SENSORIF_SCL_PIN   2

◆ SENSORIF_SDA_PIN

#define SENSORIF_SDA_PIN   4

◆ SPI_PORTNUM

#define SPI_PORTNUM   1

Typedef Documentation

◆ dvbd_sensorif_type

Enumeration Type Documentation

◆ dvbd_sensorif_type

Enumerator
STYPE_NONE 
STYPE_SI7021 
STYPE_LTR303ALS 
STYPE_MAX30205 
STYPE_TMP102 

Function Documentation

◆ select_sensorif()

void select_sensorif ( sensorif_callbacks callback,
dvbd_sensorif_type  dev_type,
void(*)()  handler 
)

◆ SENSORIF_Handler_LTR303ALS()

void SENSORIF_Handler_LTR303ALS ( void  )

◆ SENSORIF_Handler_MAX30205()

void SENSORIF_Handler_MAX30205 ( void  )

◆ SENSORIF_Handler_SI7021()

void SENSORIF_Handler_SI7021 ( void  )

SENSORIF Handler Example for SI7021.

◆ SENSORIF_Handler_TMP102()

void SENSORIF_Handler_TMP102 ( void  )

SENSORIF Handler Example for TMP102.