MetaWear C++ API  0.20.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 
39 METAWEAR_API void mbl_mw_event_end_record(MblMwEvent *event, void *context, MblMwFnEventPtrInt commands_recorded);
45 
46 #ifdef __cplusplus
47 }
48 #endif
Macros for identifying exported functions.
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
METAWEAR_API MblMwMetaWearBoard * mbl_mw_event_get_owner(const MblMwEvent *event)
Retrieves the MblMwMetaWearBoard the event belongs to.
METAWEAR_API void mbl_mw_event_record_commands(MblMwEvent *event)
Enables command recording.
METAWEAR_API void mbl_mw_event_remove_all(MblMwMetaWearBoard *board)
Remove all recorded events from the board.
METAWEAR_API void mbl_mw_event_end_record(MblMwEvent *event, void *context, MblMwFnEventPtrInt commands_recorded)
Ends command recording.
Forward declaration of the MblMwEvent type.
struct MblMwEvent MblMwEvent
Represents an event fired from the MetaWear board.
Definition: event_fwd.h:16
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
Forward declarations for the MblMwMetaWearBoard type.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17