MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
multichanneltemperature.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "sensor_common.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
19 typedef enum {
26 
30 typedef enum {
34 
38 typedef enum {
44 
65 METAWEAR_API void mbl_mw_multi_chnl_temp_configure_ext_thermistor(const MblMwMetaWearBoard *board, uint8_t channel, uint8_t data_pin,
66  uint8_t pulldown_pin, uint8_t active_high);
79 
80 #ifdef __cplusplus
81 }
82 #endif
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
METAWEAR_API uint8_t mbl_mw_multi_chnl_temp_get_num_channels(const MblMwMetaWearBoard *board)
Retrieve the number of available channels.
MblMwTemperatureSource
Enumeration of the available temperature sourcs.
Definition: multichanneltemperature.h:19
@ MBL_MW_TEMPERATURE_SOURCE_PRESET_THERM
Temperature from an internal thremistor.
Definition: multichanneltemperature.h:24
@ MBL_MW_TEMPERATURE_SOURCE_EXT_THERM
Tempertaure from an external thermistor.
Definition: multichanneltemperature.h:22
@ MBL_MW_TEMPERATURE_SOURCE_INVALID
Invalid temperature source.
Definition: multichanneltemperature.h:20
@ MBL_MW_TEMPERATURE_SOURCE_NRF_DIE
Temperature from the nRF chip.
Definition: multichanneltemperature.h:21
@ MBL_MW_TEMPERATURE_SOURCE_BMP280
Temperature from the BMP280 sensor.
Definition: multichanneltemperature.h:23
METAWEAR_API MblMwDataSignal * mbl_mw_multi_chnl_temp_get_temperature_data_signal(const MblMwMetaWearBoard *board, uint8_t channel)
Retrieves the data signal representing a temperature source The temperature is in C by default The te...
METAWEAR_API MblMwTemperatureSource mbl_mw_multi_chnl_temp_get_source(const MblMwMetaWearBoard *board, uint8_t channel)
Retrieve the temperature source type corresponding to a channel ID.
MblMwMetaWearRChannel
Channel IDs for the temperature sources on the MetaWear R board.
Definition: multichanneltemperature.h:30
@ MBL_MW_METAWEAR_R_CHANNEL_EXT_THERMISTOR
Temperature from an external thermistor.
Definition: multichanneltemperature.h:32
@ MBL_MW_METAWEAR_R_CHANNEL_ON_DIE
Temperature from the nRF chip.
Definition: multichanneltemperature.h:31
METAWEAR_API void mbl_mw_multi_chnl_temp_configure_ext_thermistor(const MblMwMetaWearBoard *board, uint8_t channel, uint8_t data_pin, uint8_t pulldown_pin, uint8_t active_high)
Configure the external thermistor If a thermistor is added to the GPIOs of the MetaWear,...
MblMwMetaWearRProChannel
CHannel IDs for the temperature sources on the MetaWear RPro board.
Definition: multichanneltemperature.h:38
@ MBL_MW_METAWEAR_RPRO_CHANNEL_ON_BOARD_THERMISTOR
Temperature from the on board thermistor.
Definition: multichanneltemperature.h:40
@ MBL_MW_METAWEAR_RPRO_CHANNEL_ON_DIE
Temperature from the nRF chip.
Definition: multichanneltemperature.h:39
@ MBL_MW_METAWEAR_RPRO_CHANNEL_EXT_THERMISTOR
Temperature from an external thermistor.
Definition: multichanneltemperature.h:41
@ MBL_MW_METAWEAR_RPRO_CHANNEL_BMP280
Temperature from the BMP280 sensor.
Definition: multichanneltemperature.h:42