MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
event.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "event_fwd.h"
10 #include "metawearboard_fwd.h"
11 
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
37 METAWEAR_API void mbl_mw_event_end_record(MblMwEvent *event, void *context, MblMwFnEventPtrInt commands_recorded);
43 
44 #ifdef __cplusplus
45 }
46 #endif
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
Forward declaration of the MblMwEvent type.
Macros for identifying exported functions.
METAWEAR_API MblMwMetaWearBoard * mbl_mw_event_get_owner(const MblMwEvent *event)
Retrieves the MblMwMetaWearBoard the event belongs to.
Forward declarations for the MblMwMetaWearBoard type.
METAWEAR_API void mbl_mw_event_remove_all(MblMwMetaWearBoard *board)
Remove all recorded events from the board.
void(* MblMwFnEventPtrInt)(void *context, MblMwEvent *event, int32_t status)
Definition for callback functions that accept an MblMwEvent pointer and an int32. ...
Definition: event_fwd.h:25
struct MblMwEvent MblMwEvent
Represents an event fired from the MetaWear board.
Definition: event_fwd.h:16
METAWEAR_API void mbl_mw_event_record_commands(MblMwEvent *event)
Enables command recording.
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27
METAWEAR_API void mbl_mw_event_end_record(MblMwEvent *event, void *context, MblMwFnEventPtrInt commands_recorded)
Ends command recording.