![]() |
Contiki-NG
|
Driver for the CC2538 on-chip temperature sensor. More...
Files | |
| file | arch/cpu/cc2538/dev/cc2538-temp-sensor.c |
| Driver for the CC2538 On-Chip temperature sensor. | |
| file | arch/cpu/cc2538/dev/cc2538-temp-sensor.h |
| Header file for the CC2538 on-chip temperature Sensor Driver. | |
Functions | |
| static int | value (int type) |
Variables | |
| const struct sensors_sensor | cc2538_temp_sensor |
| Exports a global symbol to be used by the sensor API. | |
Driver for the CC2538 on-chip temperature sensor.
This driver can return the raw as well as the converted value of the sensor reading. This is controlled by the type argument of the sensor driver's value() function. The choices for the type argument are:
|
static |
< Request the raw reading
< Request the converted reading
< Generic Error
Definition at line 49 of file cc2538-temp-sensor.c.
References adc_get(), CC2538_SENSORS_ERROR, CC2538_SENSORS_VALUE_TYPE_CONVERTED, CC2538_SENSORS_VALUE_TYPE_RAW, SOC_ADC_ADCCON_CH_TEMP, SOC_ADC_ADCCON_DIV_512, and SOC_ADC_ADCCON_REF_INT.
Referenced by bitWrite(), cbor_read_signed(), cbor_read_unsigned(), cbor_write_signed(), cbor_write_unsigned(), configure(), get_iq_lsbs(), gpio_hal_arch_no_port_toggle_pins(), gpio_hal_arch_no_port_write_pin(), gpio_hal_arch_no_port_write_pins(), gpio_hal_arch_port_write_pin(), gpio_hal_arch_port_write_pins(), rpl_set_leaf_only(), rtcc_print(), snmp_message_decode(), snmp_message_encode(), and watchdog_arch_next_timeout().