32 #ifndef DEVBOARD_SENSORIF_H
33 #define DEVBOARD_SENSORIF_H
36 #define DECIMAL_MASK_FOUR_BITS 0x0F
37 #define DECIMAL_MASK_TWO_BITS 0x03
45 #define SENSORIF_AN_PIN 36
46 #define SENSORIF_RST_PIN 6
47 #define SENSORIF_CS_PIN 34
48 #define SENSORIF_SCK_PIN 33
49 #define SENSORIF_MISO_PIN 32
50 #define SENSORIF_MOSI_PIN 31
51 #define SENSORIF_PWM_PIN 35
52 #define SENSORIF_INT_PIN 5
55 #define SENSORIF_SCL_PIN 2
56 #define SENSORIF_SDA_PIN 4
70 void (*sensorif_handler)();
71 uint8_t (*sensorif_initialise)();
void SENSORIF_Handler_LTR303ALS(void)
Definition: devboard_sensorif.c:155
void SENSORIF_Handler_MAX30205(void)
Definition: devboard_sensorif.c:122
void SENSORIF_Handler_TMP102(void)
SENSORIF Handler Example for TMP102.
Definition: devboard_sensorif.c:180
dvbd_sensorif_type
Definition: devboard_sensorif.h:59
@ STYPE_SI7021
Definition: devboard_sensorif.h:61
@ STYPE_LTR303ALS
Definition: devboard_sensorif.h:62
@ STYPE_TMP102
Definition: devboard_sensorif.h:64
@ STYPE_MAX30205
Definition: devboard_sensorif.h:63
@ STYPE_NONE
Definition: devboard_sensorif.h:60
void select_sensorif(sensorif_callbacks *callback, dvbd_sensorif_type dev_type, void(*handler)())
Definition: devboard_sensorif.c:46
void SENSORIF_Handler_SI7021(void)
SENSORIF Handler Example for SI7021.
Definition: devboard_sensorif.c:88
Definition: devboard_sensorif.h:68
dvbd_sensorif_type dev_type
Definition: devboard_sensorif.h:69