MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
debug.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <stdint.h>
9 
10 #include "data.h"
11 #include "metawearboard_fwd.h"
12 #include "datasignal_fwd.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
72 METAWEAR_API void mbl_mw_debug_spoof_notification(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length);
79 METAWEAR_API void mbl_mw_debug_send_command(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length);
91 
92 #ifdef __cplusplus
93 }
94 #endif
Functions and types for data received from an MblMwDataSignal.
void(* MblMwFnData)(void *context, const MblMwData *data)
Definition for callback functions that handle data from an MblMwDataSignal.
Definition: data.h:52
Forward declaration for the MblMwDataSignal type.
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15
METAWEAR_API void mbl_mw_debug_set_stack_overflow_assertion(const MblMwMetaWearBoard *board, uint8_t enable)
Enables/disables stack overflow assertion.
METAWEAR_API void mbl_mw_debug_reset_after_gc(const MblMwMetaWearBoard *board)
Restarts the board after performing garbage collection.
METAWEAR_API void mbl_mw_debug_send_command(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length)
Sends a raw command directly to the MetaWear.
METAWEAR_API void mbl_mw_debug_read_stack_overflow_state(const MblMwMetaWearBoard *board, void *context, MblMwFnData handler)
Reads the current stack state.
METAWEAR_API void mbl_mw_debug_reset(const MblMwMetaWearBoard *board)
Issues a soft reset.
METAWEAR_API void mbl_mw_debug_read_schedule_queue_usage(const MblMwMetaWearBoard *board, void *context, MblMwFnData handler)
Reads the internal queues' current usage statistics; data is returned as a byte array.
METAWEAR_API MblMwDataSignal * mbl_mw_debug_get_key_register_data_signal(const MblMwMetaWearBoard *board)
Retrieves a data signal representing the key register value.
METAWEAR_API void mbl_mw_debug_jump_to_bootloader(const MblMwMetaWearBoard *board)
Restarts the board in bootloader mode.
METAWEAR_API void mbl_mw_debug_set_key_register(const MblMwMetaWearBoard *board, uint32_t value)
Sets the key register value.
METAWEAR_API void mbl_mw_debug_enable_power_save(const MblMwMetaWearBoard *board)
Places the board in a powered down state after the next reset.
METAWEAR_API void mbl_mw_debug_disconnect(const MblMwMetaWearBoard *board)
Instructs the board to terminate the connection.
METAWEAR_API void mbl_mw_debug_spoof_notification(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length)
Creates a synthetic notification internally to the MetaWear system.
Macros for identifying exported functions.
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
Forward declarations for the MblMwMetaWearBoard type.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17