MetaWear C++ API  0.18.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 
45 
59 
68 
75 METAWEAR_API void mbl_mw_debug_spoof_notification(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length);
76 
83 METAWEAR_API void mbl_mw_debug_send_command(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length);
84 
95 METAWEAR_API void mbl_mw_debug_set_key_register(const MblMwMetaWearBoard *board, uint32_t value);
96 
97 #ifdef __cplusplus
98 }
99 #endif
METAWEAR_API void mbl_mw_debug_set_key_register(const MblMwMetaWearBoard *board, uint32_t value)
Sets the key register value.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
Functions and types for data received from an MblMwDataSignal.
METAWEAR_API void mbl_mw_debug_disconnect(const MblMwMetaWearBoard *board)
Instructs the board to terminate the connection.
Macros for identifying exported functions.
void(* MblMwFnData)(void *context, const MblMwData *data)
Definition for callback functions that handle data from an MblMwDataSignal.
Definition: data.h:51
Forward declarations for the MblMwMetaWearBoard type.
Forward declaration for the MblMwDataSignal type.
METAWEAR_API void mbl_mw_debug_jump_to_bootloader(const MblMwMetaWearBoard *board)
Restarts the board in bootloader mode.
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_read_stack_overflow_state(const MblMwMetaWearBoard *board, void *context, MblMwFnData handler)
Reads the current stack state.
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(const MblMwMetaWearBoard *board)
Issues a soft reset.
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.
METAWEAR_API void mbl_mw_debug_read_schedule_queue_usage(const MblMwMetaWearBoard *board, void *context, MblMwFnData handler)
Reads the internal queues&#39; current usage statistics; data is returned as a byte array.
METAWEAR_API void mbl_mw_debug_reset_after_gc(const MblMwMetaWearBoard *board)
Restarts the board after performing garbage collection.
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15
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_send_command(const MblMwMetaWearBoard *board, const uint8_t *value, uint8_t length)
Sends a raw command directly to the MetaWear.