HAL Generic Barometer Interface.
More...
HAL Generic Barometer Interface.
| #define _base_barometer_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);
int32_t msg_t
Type of a message.
BaseBarometer specific methods.
Definition at line 49 of file hal_barometer.h.
| #define _base_barometer_methods |
Value:#define _base_barometer_methods_alone
BaseBarometer specific methods.
BaseBarometer specific methods with inherited ones.
Definition at line 63 of file hal_barometer.h.
| #define barometerGetChannelsNumber |
( |
|
ip | ) |
(ip)->vmt->get_channels_number(ip) |
Barometer get channels number.
- Parameters
-
- Returns
- The number of channels of the BaseBarometer
- 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 hal_barometer.h.
| #define barometerReadRaw |
( |
|
ip, |
|
|
|
dp |
|
) |
| (ip)->vmt->read_raw(ip, dp) |
Barometer read raw data.
- Parameters
-
| [in] | ip | pointer to a BaseBarometer class. |
| [in] | dp | pointer to a data array. |
- 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 hal_barometer.h.
| #define barometerReadCooked |
( |
|
ip, |
|
|
|
dp |
|
) |
| (ip)->vmt->read_cooked(ip, dp) |
Barometer read cooked data.
- Parameters
-
| [in] | ip | pointer to a BaseBarometer class. |
| [in] | dp | pointer to a data array. |
- 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 hal_barometer.h.
| #define barometerSetBias |
( |
|
ip, |
|
|
|
bp |
|
) |
| (ip)->vmt->set_bias(ip, bp) |
Updates barometer bias data from received buffer.
- Note
- The bias buffer must have the same length of the the barometer channels number.
- Parameters
-
| [in] | ip | pointer to a BaseBarometer 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 hal_barometer.h.
| #define barometerResetBias |
( |
|
ip | ) |
(ip)->vmt->reset_bias(ip) |
Reset barometer 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 hal_barometer.h.
| #define barometerSetSensitivity |
( |
|
ip, |
|
|
|
sp |
|
) |
| (ip)->vmt->set_sensitivity(ip, sp) |
Updates barometer sensitivity data from received buffer.
- Note
- The sensitivity buffer must have the same length of the the barometer channels number.
- Parameters
-
| [in] | ip | pointer to a BaseBarometer 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 hal_barometer.h.
| #define barometerResetSensitivity |
( |
|
ip | ) |
(ip)->vmt->reset_sensitivity(ip) |
Reset barometer 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 hal_barometer.h.