MetaWear C++ API  0.20.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 
25 METAWEAR_API void mbl_mw_macro_record(MblMwMetaWearBoard *board, uint8_t exec_on_boot);
33 METAWEAR_API void mbl_mw_macro_end_record(MblMwMetaWearBoard *board, void *context, MblMwFnBoardPtrInt commands_recorded);
47 
48 #ifdef __cplusplus
49 }
50 #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 void mbl_mw_macro_execute(MblMwMetaWearBoard *board, uint8_t id)
Execute the commands corresponding to the macro ID.
METAWEAR_API void mbl_mw_macro_end_record(MblMwMetaWearBoard *board, void *context, MblMwFnBoardPtrInt commands_recorded)
Ends macro recording.
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.
Forward declarations for the MblMwMetaWearBoard type.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
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