Contiki-NG
Modules | Files | Functions

Defines related to configuring SensorTag peripherals. More...

Modules

 CC1350 SensorTag peripherals
 This group documents components specific to this SensorTag.
 
 CC2650 SensorTag peripherals
 This group documents components specific to this SensorTag.
 
 LPSTK peripherals
 This group documents components specific to this SensorTag.
 
 SensorTag Buzzer
 
 SensorTag HDC1000 - Temperature and
 Humidity Sensor.
 
 SensorTag IR Thermophile sensor
 
   Due to the time required for the sensor to startup, this driver is
   meant to be used in an asynchronous fashion.

 
 SensorTag Motion Processing Unit
 
 Driver for the Invensense MPU-9250 Motion Processing Unit.

 
 SensorTag Optical Sensor
 
   Due to the time required for the sensor to startup, this driver is
   meant to be used in an asynchronous fashion.

 
 SensorTag Pressure Sensor
 Due to the time required for the sensor to startup, this driver is meant to be used in an asynchronous fashion.
 

Files

file  board-conf.h
 Header file with definitions related to the sensors on the Sensortags.
 
 
file  button-sensor-arch.c
 Button HAL definitions for the SensorTag buttons.
 

Functions

 BUTTON_HAL_BUTTON (key_left, "Key Left", Board_KEY_LEFT, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_LEFT, true)
 Negative logic. More...
 
 BUTTON_HAL_BUTTON (key_right, "Key Right", Board_KEY_RIGHT, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_RIGHT, true)
 Negative logic. More...
 
 BUTTON_HAL_BUTTON (reed_relay, "Reed Relay", Board_RELAY, GPIO_HAL_PIN_CFG_PULL_DOWN|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_REED_RELAY, false)
 Negative logic. More...
 

LED configurations for the dev/leds.h API. The actual LED

  configuration of available LEDs are done in leds-arch.h.

Those values are not meant to be modified by the user

#define PLATFORM_HAS_LEDS   1
 

Button configurations for the dev/button-hal.h API.

Those values are not meant to be modified by the user

#define PLATFORM_HAS_BUTTON   1
 
#define PLATFORM_SUPPORTS_BUTTON_HAL   1
 
#define BUTTON_HAL_ID_KEY_LEFT   0
 
#define BUTTON_HAL_ID_KEY_RIGHT   1
 
#define BUTTON_HAL_ID_REED_RELAY   2
 

SensorTag does have sensors.

Those values are not meant to be modified by the user

#define BOARD_CONF_HAS_SENSORS   1
 

Enable or disable the SensorTag sensors.

Those values are not meant to be modified by the user

#define BOARD_SENSORS_ENABLE   (!(BOARD_CONF_SENSORS_DISABLE))
 

Detailed Description

Defines related to configuring SensorTag peripherals.

The two sensortags, CC1350STK and CC2650STK, are identical to a very large extent. Everything documented within this group applies to both sensortags.

Function Documentation

◆ BUTTON_HAL_BUTTON() [1/3]

BUTTON_HAL_BUTTON ( key_left  ,
"Key Left"  ,
Board_KEY_LEFT  ,
GPIO_HAL_PIN_CFG_PULL_UP|  GPIO_HAL_PIN_CFG_HYSTERESIS,
BUTTON_HAL_ID_KEY_LEFT  ,
true   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration

◆ BUTTON_HAL_BUTTON() [2/3]

BUTTON_HAL_BUTTON ( key_right  ,
"Key Right"  ,
Board_KEY_RIGHT  ,
GPIO_HAL_PIN_CFG_PULL_UP|  GPIO_HAL_PIN_CFG_HYSTERESIS,
BUTTON_HAL_ID_KEY_RIGHT  ,
true   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration

◆ BUTTON_HAL_BUTTON() [3/3]

BUTTON_HAL_BUTTON ( reed_relay  ,
"Reed Relay"  ,
Board_RELAY  ,
GPIO_HAL_PIN_CFG_PULL_DOWN|  GPIO_HAL_PIN_CFG_HYSTERESIS,
BUTTON_HAL_ID_REED_RELAY  ,
false   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration