This is a basic code to be used for Sequana BLE Lab exercises.
Kmx65Sensor Class Reference
KX64 accelerometer/magnetometer sensor interface. More...
#include <Kmx65.h>
Inherits Sensor< Kmx65Value >.
Public Member Functions | |
Kmx65Sensor (SPI &spi, PinName cs) | |
Create and initialize sensor interface. | |
virtual void | start (EventQueue &ev_queue) |
Schedule measurement process. | |
const Kmx65Value & | get_value () |
Get current value of the sensor. | |
void | register_updater (Callback< void()> func) |
Register characteristic update method. | |
Protected Member Functions | |
void | updater () |
Callback function periodically updating sensor value. |
Detailed Description
KX64 accelerometer/magnetometer sensor interface.
Definition at line 108 of file Kmx65.h.
Constructor & Destructor Documentation
Kmx65Sensor | ( | SPI & | spi, |
PinName | cs | ||
) |
Member Function Documentation
const Kmx65Value & get_value | ( | ) | [inherited] |
void register_updater | ( | Callback< void()> | func ) | [inherited] |
Register characteristic update method.
This method will be called every time the sensor value changes and it's supposed to update the BEL characteristic based on the current sensor value.
- Parameters:
-
func Callback function called by sensor to update its characteristic value.
void start | ( | EventQueue & | ev_queue ) | [virtual] |
Schedule measurement process.
Initialize driver and setup periodic sensor updates.
Implements Sensor< Kmx65Value >.
Generated on Thu Jul 14 2022 02:36:35 by 1.7.2