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

Go to the source code of this file.

Classes

struct  data_thermo
 
struct  data_thermo3
 
struct  data_airquality4
 
struct  data_environment2
 
struct  data_sht
 
struct  data_hvac
 
struct  data_motion
 
struct  data_relay
 
struct  data_ambient8
 
struct  data_fan
 
struct  data_expand13
 

Macros

#define I2C_PORTNUM   1
 
#define SPI_PORTNUM   1
 
#define DVBD_MAX_SLEEP_TIME   0x07B98A00
 
#define DVBD_NUM_MIKROBUS   2
 
#define DVBD_CLICK_POWER_ON   0
 
#define DVBD_CLICK_POWER_OFF   1
 
#define DVBD_CLICK_POWER_PIN   12
 
#define CLICK_AN_PIN   36
 
#define CLICK_RST_PIN   6
 
#define CLICK_CS_PIN   34
 
#define CLICK_SCK_PIN   33
 
#define CLICK_MISO_PIN   32
 
#define CLICK_MOSI_PIN   31
 
#define CLICK_PWM_PIN   35
 
#define CLICK_INT_PIN   5
 
#define CLICK_SCL_PIN   2
 
#define CLICK_SDA_PIN   4
 

Typedefs

typedef enum dvbd_click_type dvbd_click_type
 

Enumerations

enum  dvbd_click_type {
  STYPE_NONE = 0 , STYPE_THERMO = 1 , STYPE_THERMO3 = 2 , STYPE_AIRQUALITY4 = 3 ,
  STYPE_ENVIRONMENT2 = 4 , STYPE_SHT = 5 , STYPE_HVAC = 6 , STYPE_MOTION = 7 ,
  STYPE_RELAY = 8 , STYPE_AMBIENT8 = 9 , STYPE_FAN = 10 , STYPE_EXPAND13 = 12
}
 

Functions

ca_error DVBD_click_power_init (void)
 
ca_error DVBD_click_power_set (uint8_t onoff)
 
ca_error CLICK_THERMO3_acquisition (data_thermo3 *data)
 
ca_error CLICK_THERMO_acquisition (data_thermo *data)
 
ca_error CLICK_AIRQUALITY4_acquisition (data_airquality4 *data)
 
ca_error CLICK_ENVIRONMENT2_acquisition (data_environment2 *data)
 
ca_error CLICK_SHT_acquisition (data_sht *data)
 
ca_error CLICK_HVAC_acquisition (data_hvac *data)
 
ca_error CLICK_MOTION_acquisition (data_motion *data)
 
ca_error CLICK_RELAY_acquisition (data_relay *data)
 
ca_error CLICK_AMBIENT8_acquisition (data_ambient8 *data)
 
ca_error CLICK_FAN_acquisition (data_fan *data)
 
ca_error CLICK_EXPAND13_acquisition (data_expand13 *data)
 
ca_error CLICK_THERMO3_initialise (void)
 
ca_error CLICK_THERMO_initialise (void)
 
ca_error CLICK_AIRQUALITY4_initialise (void)
 
ca_error CLICK_ENVIRONMENT2_initialise (void)
 
ca_error CLICK_SHT_initialise (void)
 
ca_error CLICK_HVAC_initialise (void)
 
ca_error CLICK_MOTION_initialise (void)
 
ca_error CLICK_RELAY_initialise (void)
 
ca_error CLICK_AMBIENT8_initialise (void)
 
ca_error CLICK_FAN_initialise (void)
 
ca_error CLICK_EXPAND13_initialise (void)
 

Variables

uint8_t g_relay_1_state
 
uint8_t g_relay_2_state
 
uint8_t g_fan_speed_pwm_percent
 
uint16_t g_fan_speed_tach_rpm
 

Macro Definition Documentation

◆ CLICK_AN_PIN

#define CLICK_AN_PIN   36

◆ CLICK_CS_PIN

#define CLICK_CS_PIN   34

◆ CLICK_INT_PIN

#define CLICK_INT_PIN   5

◆ CLICK_MISO_PIN

#define CLICK_MISO_PIN   32

◆ CLICK_MOSI_PIN

#define CLICK_MOSI_PIN   31

◆ CLICK_PWM_PIN

#define CLICK_PWM_PIN   35

◆ CLICK_RST_PIN

#define CLICK_RST_PIN   6

◆ CLICK_SCK_PIN

#define CLICK_SCK_PIN   33

◆ CLICK_SCL_PIN

#define CLICK_SCL_PIN   2

◆ CLICK_SDA_PIN

#define CLICK_SDA_PIN   4

◆ DVBD_CLICK_POWER_OFF

#define DVBD_CLICK_POWER_OFF   1

◆ DVBD_CLICK_POWER_ON

#define DVBD_CLICK_POWER_ON   0

◆ DVBD_CLICK_POWER_PIN

#define DVBD_CLICK_POWER_PIN   12

◆ DVBD_MAX_SLEEP_TIME

#define DVBD_MAX_SLEEP_TIME   0x07B98A00

◆ DVBD_NUM_MIKROBUS

#define DVBD_NUM_MIKROBUS   2

◆ I2C_PORTNUM

#define I2C_PORTNUM   1

◆ SPI_PORTNUM

#define SPI_PORTNUM   1

Typedef Documentation

◆ dvbd_click_type

Enumeration Type Documentation

◆ dvbd_click_type

Enumerator
STYPE_NONE 
STYPE_THERMO 
STYPE_THERMO3 
STYPE_AIRQUALITY4 
STYPE_ENVIRONMENT2 
STYPE_SHT 
STYPE_HVAC 
STYPE_MOTION 
STYPE_RELAY 
STYPE_AMBIENT8 
STYPE_FAN 
STYPE_EXPAND13 

Function Documentation

◆ CLICK_AIRQUALITY4_acquisition()

ca_error CLICK_AIRQUALITY4_acquisition ( data_airquality4 data)

◆ CLICK_AIRQUALITY4_initialise()

ca_error CLICK_AIRQUALITY4_initialise ( void  )

◆ CLICK_AMBIENT8_acquisition()

ca_error CLICK_AMBIENT8_acquisition ( data_ambient8 data)

◆ CLICK_AMBIENT8_initialise()

ca_error CLICK_AMBIENT8_initialise ( void  )

◆ CLICK_ENVIRONMENT2_acquisition()

ca_error CLICK_ENVIRONMENT2_acquisition ( data_environment2 data)

◆ CLICK_ENVIRONMENT2_initialise()

ca_error CLICK_ENVIRONMENT2_initialise ( void  )

◆ CLICK_EXPAND13_acquisition()

ca_error CLICK_EXPAND13_acquisition ( data_expand13 data)

◆ CLICK_EXPAND13_initialise()

ca_error CLICK_EXPAND13_initialise ( void  )

◆ CLICK_FAN_acquisition()

ca_error CLICK_FAN_acquisition ( data_fan data)

◆ CLICK_FAN_initialise()

ca_error CLICK_FAN_initialise ( void  )

◆ CLICK_HVAC_acquisition()

ca_error CLICK_HVAC_acquisition ( data_hvac data)

◆ CLICK_HVAC_initialise()

ca_error CLICK_HVAC_initialise ( void  )

◆ CLICK_MOTION_acquisition()

ca_error CLICK_MOTION_acquisition ( data_motion data)

◆ CLICK_MOTION_initialise()

ca_error CLICK_MOTION_initialise ( void  )

◆ CLICK_RELAY_acquisition()

ca_error CLICK_RELAY_acquisition ( data_relay data)

◆ CLICK_RELAY_initialise()

ca_error CLICK_RELAY_initialise ( void  )

◆ CLICK_SHT_acquisition()

ca_error CLICK_SHT_acquisition ( data_sht data)

◆ CLICK_SHT_initialise()

ca_error CLICK_SHT_initialise ( void  )

◆ CLICK_THERMO3_acquisition()

ca_error CLICK_THERMO3_acquisition ( data_thermo3 data)

◆ CLICK_THERMO3_initialise()

ca_error CLICK_THERMO3_initialise ( void  )

◆ CLICK_THERMO_acquisition()

ca_error CLICK_THERMO_acquisition ( data_thermo data)

◆ CLICK_THERMO_initialise()

ca_error CLICK_THERMO_initialise ( void  )

◆ DVBD_click_power_init()

ca_error DVBD_click_power_init ( void  )

◆ DVBD_click_power_set()

ca_error DVBD_click_power_set ( uint8_t  onoff)

Variable Documentation

◆ g_fan_speed_pwm_percent

uint8_t g_fan_speed_pwm_percent
extern

◆ g_fan_speed_tach_rpm

uint16_t g_fan_speed_tach_rpm
extern

◆ g_relay_1_state

uint8_t g_relay_1_state
extern

◆ g_relay_2_state

uint8_t g_relay_2_state