Contiki-NG
Modules | Files | Functions | Variables

Defines related to configuring SensorTag peripherals. More...

Modules

 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.
 
 
 
file  leds-arch.h
 LED HAL definitions for the CC1350STK LEDs.
 
 
file  leds-arch.h
 LED HAL definitions for the CC1350STK LEDs.
 

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, true)
 Negative logic. More...
 

Variables

SENSORS & bmp_280_sensor
 Exports a global symbol to be used by the sensor API.
 

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))
 

LED configurations for the dev/leds.h API.

Those values are not meant to be modified by the user

#define LEDS_CONF_COUNT   1
 
#define LEDS_CONF_RED   0
 
#define LEDS_CONF_ALL   ((1 << LEDS_CONF_COUNT) - 1)
 

LED configurations for the dev/leds.h API.

Those values are not meant to be modified by the user

#define LEDS_CONF_COUNT   2
 
#define LEDS_CONF_RED   0
 
#define LEDS_CONF_GREEN   1
 
#define LEDS_CONF_ALL   ((1 << LEDS_CONF_COUNT) - 1)
 

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  ,
true   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration