EX Generic Thermometer Interface.
More...
EX Generic Thermometer Interface.
◆ _base_thermometer_methods_alone
| #define _base_thermometer_methods_alone |
Value: \
msg_t (*set_bias)(void *instance, float biases[]); \
\
msg_t (*reset_bias)(void *instance); \
\
msg_t (*set_sensitivity)(void *instance, float sensitivities[]); \
\
msg_t (*reset_sensitivity)(void *instance);
BaseThermometer specific methods.
Definition at line 49 of file ex_thermometer.h.
◆ _base_thermometer_methods
| #define _base_thermometer_methods |
◆ _base_thermometer_data
◆ thermometerGetChannelsNumber
| #define thermometerGetChannelsNumber |
( |
|
ip | ) |
(ip)->vmt->get_channels_number(ip) |
Thermometer get channels number.
- Parameters
-
- Returns
- The number of channels of the BaseThermometer
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 107 of file ex_thermometer.h.
◆ thermometerReadRaw
| #define thermometerReadRaw |
( |
|
ip, |
|
|
|
dp |
|
) |
| (ip)->vmt->read_raw(ip, dp) |
Thermometer read raw data.
- Parameters
-
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 122 of file ex_thermometer.h.
◆ thermometerReadCooked
| #define thermometerReadCooked |
( |
|
ip, |
|
|
|
dp |
|
) |
| (ip)->vmt->read_cooked(ip, dp) |
Thermometer read cooked data.
- Parameters
-
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 137 of file ex_thermometer.h.
◆ thermometerSetBias
| #define thermometerSetBias |
( |
|
ip, |
|
|
|
bp |
|
) |
| (ip)->vmt->set_bias(ip, bp) |
Updates thermometer bias data from received buffer.
- Note
- The bias buffer must have the same length of the the thermometer channels number.
- Parameters
-
| [in] | ip | pointer to a BaseThermometer class. |
| [in] | bp | pointer to a buffer of bias values. |
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 154 of file ex_thermometer.h.
◆ thermometerResetBias
| #define thermometerResetBias |
( |
|
ip | ) |
(ip)->vmt->reset_bias(ip) |
Reset thermometer bias data restoring it to zero.
- Parameters
-
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 168 of file ex_thermometer.h.
◆ thermometerSetSensitivity
| #define thermometerSetSensitivity |
( |
|
ip, |
|
|
|
sp |
|
) |
| (ip)->vmt->set_sensitivity(ip, sp) |
Updates thermometer sensitivity data from received buffer.
- Note
- The sensitivity buffer must have the same length of the the thermometer channels number.
- Parameters
-
| [in] | ip | pointer to a BaseThermometer class. |
| [in] | sp | pointer to a buffer of sensitivity values. |
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 185 of file ex_thermometer.h.
◆ thermometerResetSensitivity
| #define thermometerResetSensitivity |
( |
|
ip | ) |
(ip)->vmt->reset_sensitivity(ip) |
Reset thermometer sensitivity data restoring it to its typical value.
- Parameters
-
- Returns
- The operation status.
- Return values
-
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more errors occurred. |
- Function Class:
- Normal API, this function can be invoked by regular system threads but not from within a lock zone.
Definition at line 200 of file ex_thermometer.h.