MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
macro.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "metawearboard_fwd.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
20 METAWEAR_API void mbl_mw_macro_record(MblMwMetaWearBoard *board, uint8_t exec_on_boot);
28 METAWEAR_API void mbl_mw_macro_end_record(MblMwMetaWearBoard *board, void *context, MblMwFnBoardPtrInt commands_recorded);
42 
43 #ifdef __cplusplus
44 }
45 #endif
METAWEAR_API void mbl_mw_macro_end_record(MblMwMetaWearBoard *board, void *context, MblMwFnBoardPtrInt commands_recorded)
Ends macro recording.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
METAWEAR_API void mbl_mw_macro_erase_all(MblMwMetaWearBoard *board)
Remove all macros on the flash memory.
METAWEAR_API void mbl_mw_macro_record(MblMwMetaWearBoard *board, uint8_t exec_on_boot)
Begin macro recording.
Macros for identifying exported functions.
Forward declarations for the MblMwMetaWearBoard type.
void(* MblMwFnBoardPtrInt)(void *context, MblMwMetaWearBoard *board, int32_t value)
Definition for callback functions that accept an MblMwMetaWearBoard pointer and an int32...
Definition: metawearboard_fwd.h:26
METAWEAR_API void mbl_mw_macro_execute(MblMwMetaWearBoard *board, uint8_t id)
Execute the commands corresponding to the macro ID.
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27