MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
Public Attributes | List of all members
MblMwRawLogDownloadHandler Struct Reference

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...
 

Detailed Description

Callback functions for handling notifications from the logger.

Member Data Documentation

◆ logging_page_completed

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.

Parameters
contextPointer to the context field
callerObject using this function pointer
readyCallback function to handle when ready for the next page

◆ received_entry

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.

Parameters
contextPointer to the context field
entry_idLogger id of the entry
reset_uidReset id when this entry was logged
entry_tickRaw time when this entry was logged
dataRaw data

◆ received_progress_update

void(* MblMwRawLogDownloadHandler::received_progress_update) (void *context, uint32_t entries_left, uint32_t total_entries)

Called when a progress update is received.

Parameters
contextPointer to the context field
entries_leftNumber of entries left to download
total_entriesTotal number of entries

The documentation for this struct was generated from the following file: