32 #ifndef DEVBOARD_CLICK_H
33 #define DEVBOARD_CLICK_H
42 #define DVBD_MAX_SLEEP_TIME 0x07B98A00
45 #define DVBD_NUM_MIKROBUS 2
48 #define DVBD_CLICK_POWER_ON 0
49 #define DVBD_CLICK_POWER_OFF 1
52 #define DVBD_CLICK_POWER_PIN 12
55 #define CLICK_AN_PIN 36
56 #define CLICK_RST_PIN 6
57 #define CLICK_CS_PIN 34
58 #define CLICK_SCK_PIN 33
59 #define CLICK_MISO_PIN 32
60 #define CLICK_MOSI_PIN 31
61 #define CLICK_PWM_PIN 35
62 #define CLICK_INT_PIN 5
65 #define CLICK_SCL_PIN 2
66 #define CLICK_SDA_PIN 4
Global error declarations for use across the Cascoda SDK.
ca_error CLICK_MOTION_acquisition(data_motion *data)
Definition: devboard_click.c:214
ca_error CLICK_EXPAND13_acquisition(data_expand13 *data)
Definition: devboard_click.c:281
ca_error CLICK_FAN_acquisition(data_fan *data)
Definition: devboard_click.c:267
ca_error CLICK_RELAY_initialise(void)
Definition: devboard_click.c:368
ca_error CLICK_HVAC_acquisition(data_hvac *data)
Definition: devboard_click.c:192
uint8_t g_fan_speed_pwm_percent
Definition: devboard_click.c:62
ca_error CLICK_AIRQUALITY4_initialise(void)
Definition: devboard_click.c:314
ca_error CLICK_ENVIRONMENT2_acquisition(data_environment2 *data)
Definition: devboard_click.c:151
ca_error CLICK_AIRQUALITY4_acquisition(data_airquality4 *data)
Definition: devboard_click.c:133
ca_error CLICK_AMBIENT8_acquisition(data_ambient8 *data)
Definition: devboard_click.c:248
ca_error CLICK_RELAY_acquisition(data_relay *data)
Definition: devboard_click.c:236
ca_error CLICK_ENVIRONMENT2_initialise(void)
Definition: devboard_click.c:323
ca_error DVBD_click_power_set(uint8_t onoff)
Definition: devboard_click.c:87
uint16_t g_fan_speed_tach_rpm
Definition: devboard_click.c:63
ca_error CLICK_EXPAND13_initialise(void)
Definition: devboard_click.c:402
ca_error CLICK_MOTION_initialise(void)
Definition: devboard_click.c:355
dvbd_click_type
Definition: devboard_click.h:69
@ STYPE_SHT
Definition: devboard_click.h:75
@ STYPE_AMBIENT8
Definition: devboard_click.h:79
@ STYPE_ENVIRONMENT2
Definition: devboard_click.h:74
@ STYPE_EXPAND13
Definition: devboard_click.h:81
@ STYPE_THERMO
Definition: devboard_click.h:71
@ STYPE_HVAC
Definition: devboard_click.h:76
@ STYPE_AIRQUALITY4
Definition: devboard_click.h:73
@ STYPE_FAN
Definition: devboard_click.h:80
@ STYPE_RELAY
Definition: devboard_click.h:78
@ STYPE_MOTION
Definition: devboard_click.h:77
@ STYPE_NONE
Definition: devboard_click.h:70
@ STYPE_THERMO3
Definition: devboard_click.h:72
uint8_t g_relay_2_state
Definition: devboard_click.h:180
ca_error CLICK_AMBIENT8_initialise(void)
Definition: devboard_click.c:378
ca_error CLICK_THERMO3_initialise(void)
Definition: devboard_click.c:291
ca_error CLICK_HVAC_initialise(void)
Definition: devboard_click.c:346
ca_error CLICK_THERMO_acquisition(data_thermo *data)
Definition: devboard_click.c:93
uint8_t g_relay_1_state
Definition: devboard_click.c:59
ca_error CLICK_THERMO3_acquisition(data_thermo3 *data)
Definition: devboard_click.c:111
ca_error CLICK_FAN_initialise(void)
Definition: devboard_click.c:387
ca_error CLICK_SHT_initialise(void)
Definition: devboard_click.c:332
ca_error DVBD_click_power_init(void)
Definition: devboard_click.c:69
ca_error CLICK_THERMO_initialise(void)
Definition: devboard_click.c:305
ca_error CLICK_SHT_acquisition(data_sht *data)
Definition: devboard_click.c:170
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
Definition: devboard_click.h:103
uint8_t status
Definition: devboard_click.h:104
uint16_t tvoc_eth
Definition: devboard_click.h:107
uint16_t co2_h2
Definition: devboard_click.h:105
Definition: devboard_click.h:156
uint8_t status
Definition: devboard_click.h:157
uint32_t illuminance_ch1
Definition: devboard_click.h:159
uint32_t illuminance_ch0
Definition: devboard_click.h:158
uint32_t illuminance_ambient
Definition: devboard_click.h:160
Definition: devboard_click.h:113
uint16_t air_quality
Definition: devboard_click.h:117
uint8_t status
Definition: devboard_click.h:114
int32_t voc_index
Definition: devboard_click.h:118
int16_t temperature
Definition: devboard_click.h:116
int16_t humidity
Definition: devboard_click.h:115
Definition: devboard_click.h:174
uint8_t status
Definition: devboard_click.h:175
uint8_t port0
Definition: devboard_click.h:176
Definition: devboard_click.h:165
uint8_t speed_pwm_percent
Definition: devboard_click.h:167
uint16_t speed_tach_rpm
Definition: devboard_click.h:168
uint8_t status
Definition: devboard_click.h:166
Definition: devboard_click.h:131
uint8_t status
Definition: devboard_click.h:132
uint16_t co2content
Definition: devboard_click.h:133
int16_t humidity
Definition: devboard_click.h:134
int16_t temperature
Definition: devboard_click.h:135
Definition: devboard_click.h:140
uint8_t detection_state
Definition: devboard_click.h:142
uint8_t status
Definition: devboard_click.h:141
uint32_t detection_time
Definition: devboard_click.h:143
Definition: devboard_click.h:148
uint8_t relay_2_state
Definition: devboard_click.h:151
uint8_t status
Definition: devboard_click.h:149
uint8_t relay_1_state
Definition: devboard_click.h:150
Definition: devboard_click.h:123
int16_t humidity
Definition: devboard_click.h:125
int16_t temperature
Definition: devboard_click.h:126
uint8_t status
Definition: devboard_click.h:124
Definition: devboard_click.h:96
uint8_t status
Definition: devboard_click.h:97
uint16_t temperature
Definition: devboard_click.h:98
Definition: devboard_click.h:88
uint8_t status
Definition: devboard_click.h:89
uint16_t junction_temperature
Definition: devboard_click.h:91
uint16_t thermocouple_temperature
Definition: devboard_click.h:90