Contiki-NG
Loading...
Searching...
No Matches

Topics

 CC1350 SensorTag peripherals
 
 
 CC2650 SensorTag peripherals
 
 
 LPSTK peripherals
 
 
 SensorTag Buzzer
 
 
 SensorTag HDC1000 - Temperature and
 Humidity Sensor
 
 SensorTag IR Thermophile sensor
 
 
 SensorTag Motion Processing Unit
 
 
 SensorTag Optical Sensor
 
 
 SensorTag Pressure Sensor
 
 

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

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