MetaWear C++ API
0.20.0
C++ implementation of the MetaWear protocol
|
Callback functions for handling notifications from the logger. More...
#include <logging.h>
Public Attributes | |
void * | context |
Pointer to additional data for the callback functions. | |
void(* | received_entry )(void *context, uint8_t entry_id, uint8_t reset_uid, uint32_t entry_tick, uint32_t data) |
Called when a log entry is received. More... | |
void(* | received_progress_update )(void *context, uint32_t entries_left, uint32_t total_entries) |
Called when a progress update is received. More... | |
void(* | logging_page_completed )(void *context, const MblMwMetaWearBoard *caller, MblMwFnBoardPtr ready) |
Called when a log page is complete, use the ready function to indicate when data has been saved and you're ready to receive the next page. More... | |
Callback functions for handling notifications from the logger.
void(* MblMwRawLogDownloadHandler::logging_page_completed) (void *context, const MblMwMetaWearBoard *caller, MblMwFnBoardPtr ready) |
Called when a log page is complete, use the ready function to indicate when data has been saved and you're ready to receive the next page.
context | Pointer to the context field |
caller | Object using this function pointer |
ready | Callback function to handle when ready for the next page |
void(* MblMwRawLogDownloadHandler::received_entry) (void *context, uint8_t entry_id, uint8_t reset_uid, uint32_t entry_tick, uint32_t data) |
Called when a log entry is received.
context | Pointer to the context field |
entry_id | Logger id of the entry (logger id) |
reset_uid | Reset id when this entry was logged (unique counter that increments when the device resets) |
entry_tick | Raw time when this entry was logged (clock tick the data was logged on in units of 48/32768 seconds - 0.00146484375 sec) |
data | Raw data (4 bytes) |
void(* MblMwRawLogDownloadHandler::received_progress_update) (void *context, uint32_t entries_left, uint32_t total_entries) |
Called when a progress update is received.
context | Pointer to the context field |
entries_left | Number of entries left to download |
total_entries | Total number of entries |