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

Auxiliary functions, for advanced use only More...

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

Public Member Functions

Task ResetAsync ()
 Issues a firmware reset command to the board.
More...
 
void ResetAfterGc ()
 Commands the board to reset after performing garbage collection. Use this function in lieu of ResetAsync to reset the board after erasing macros or log data. More...
 
Task DisconnectAsync ()
 Commands the board to terminate the BLE link. More...
 
Task JumpToBootloaderAsync ()
 Restarts the board in MetaBoot mode which enables firmware updates. More...
 
bool EnablePowerSave ()
 Places the board in a powered down state after the next reset.
More...
 
void WriteTmpValue (int value)
 Writes a signed int that persists until a reset, can be later retrieved with ReadTmpValueAsync More...
 
Task< int > ReadTmpValueAsync ()
 Reads the temp value written by WriteTmpValue(int) More...
 

Detailed Description

Auxiliary functions, for advanced use only

Member Function Documentation

◆ DisconnectAsync()

Task MbientLab.MetaWear.Core.IDebug.DisconnectAsync ( )

Commands the board to terminate the BLE link.

This task will be immediately cancelled if called within the context of a reaction

Returns
Null when the connection is lost

◆ EnablePowerSave()

bool MbientLab.MetaWear.Core.IDebug.EnablePowerSave ( )

Places the board in a powered down state after the next reset.

When in power save mode, press the switch to wake the board up.

Returns
True if feature is supported, false if powersave cannot be enabled

◆ JumpToBootloaderAsync()

Task MbientLab.MetaWear.Core.IDebug.JumpToBootloaderAsync ( )

Restarts the board in MetaBoot mode which enables firmware updates.

This task will be immediately cancelled if called within the context of a reaction

Returns
Null when the connection is lost

◆ ReadTmpValueAsync()

Task<int> MbientLab.MetaWear.Core.IDebug.ReadTmpValueAsync ( )

Reads the temp value written by WriteTmpValue(int)

Returns
Temp value read from the device

◆ ResetAfterGc()

void MbientLab.MetaWear.Core.IDebug.ResetAfterGc ( )

Commands the board to reset after performing garbage collection. Use this function in lieu of ResetAsync to reset the board after erasing macros or log data.

◆ ResetAsync()

Task MbientLab.MetaWear.Core.IDebug.ResetAsync ( )

Issues a firmware reset command to the board.

This task will be immediately cancelled if called within the context of a reaction

Returns
Null when connection is lost

◆ WriteTmpValue()

void MbientLab.MetaWear.Core.IDebug.WriteTmpValue ( int  value)

Writes a signed int that persists until a reset, can be later retrieved with ReadTmpValueAsync

Parameters
valueValue to write

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