MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | List of all members
MbientLab.MetaWear.Core.IMacro Interface Reference

Firmware feature that saves MetaWear commands to the on-board flash memory More...

Inheritance diagram for MbientLab.MetaWear.Core.IMacro:
MbientLab.MetaWear.IModule

Public Member Functions

void StartRecord (bool execOnBoot=true)
 Starts macro recording. Every MetaWear command issued will be recorded to the flash memory. More...
 
Task< byte > EndRecordAsync ()
 Ends macro recording More...
 
void Execute (byte id)
 Execute the commands corresponding to the macro ID More...
 
void EraseAll ()
 Remove all macros on the flash memory. The erase operation will not be performed until you disconnect from the board.If you wish to reset the board after the erase operation, use the IDebug.ResetAfterGc method. More...
 

Detailed Description

Firmware feature that saves MetaWear commands to the on-board flash memory

Member Function Documentation

◆ EndRecordAsync()

Task<byte> MbientLab.MetaWear.Core.IMacro.EndRecordAsync ( )

Ends macro recording

Returns
Task containing the id of the recorded task

◆ EraseAll()

void MbientLab.MetaWear.Core.IMacro.EraseAll ( )

Remove all macros on the flash memory. The erase operation will not be performed until you disconnect from the board.If you wish to reset the board after the erase operation, use the IDebug.ResetAfterGc method.

◆ Execute()

void MbientLab.MetaWear.Core.IMacro.Execute ( byte  id)

Execute the commands corresponding to the macro ID

Parameters
idNumerical ID of the macro to execute

◆ StartRecord()

void MbientLab.MetaWear.Core.IMacro.StartRecord ( bool  execOnBoot = true)

Starts macro recording. Every MetaWear command issued will be recorded to the flash memory.

Parameters
execOnBootTrue if the commands should be executed when the board powers on, defaults to true

The documentation for this interface was generated from the following file: