MetaWear C++ API
0.18.0
C++ implementation of the MetaWear protocol
|
Functions for the MblMwEvent type. More...
Go to the source code of this file.
Functions | |
METAWEAR_API MblMwMetaWearBoard * | mbl_mw_event_get_owner (const MblMwEvent *event) |
Retrieves the MblMwMetaWearBoard the event belongs to. More... | |
METAWEAR_API void | mbl_mw_event_record_commands (MblMwEvent *event) |
Enables command recording. More... | |
METAWEAR_API void | mbl_mw_event_end_record (MblMwEvent *event, void *context, MblMwFnEventPtrInt commands_recorded) |
Ends command recording. More... | |
METAWEAR_API void | mbl_mw_event_remove_all (MblMwMetaWearBoard *board) |
Remove all recorded events from the board. More... | |
Functions for the MblMwEvent type.
METAWEAR_API void mbl_mw_event_end_record | ( | MblMwEvent * | event, |
void * | context, | ||
MblMwFnEventPtrInt | commands_recorded | ||
) |
Ends command recording.
This function is non-blocking and will asynchronously alert the caller when the operation is completed.
event | Event to end recording for |
context | Pointer to additional data for the callback function |
commands_recorded | Callback function to be executed when commands have been recorded |
METAWEAR_API MblMwMetaWearBoard* mbl_mw_event_get_owner | ( | const MblMwEvent * | event | ) |
Retrieves the MblMwMetaWearBoard the event belongs to.
event | Event to lookup |
METAWEAR_API void mbl_mw_event_record_commands | ( | MblMwEvent * | event | ) |
Enables command recording.
All MetaWear commands called after this point will be executed when the owning event is fired
event | Event to record commands for |
METAWEAR_API void mbl_mw_event_remove_all | ( | MblMwMetaWearBoard * | board | ) |
Remove all recorded events from the board.
board | Calling object |