HPM SDK
HPMicro Software Development Kit
hpm_mcl_debug.c File Reference
#include "hpm_mcl_debug.h"

Functions

void hpm_mcl_debug_init (mcl_debug_t *debug)
 init debug data struct More...
 
void hpm_mcl_debug_send_scope (mcl_debug_t *debug)
 Sends data in the buffer to the outside, Depending on how the callback function works, this function could potentially hang the application. More...
 
void hpm_mcl_debug_update_data (mcl_debug_t *debug, uint8_t chn, void *data, mcl_debug_data_type_t type)
 Update debug data. More...
 

Variables

uint8_t mcl_debug_fifo [MCL_DEBUG_FIFO+2] = {0xaa, 0xbb}
 

Function Documentation

◆ hpm_mcl_debug_init()

void hpm_mcl_debug_init ( mcl_debug_t debug)

init debug data struct

Parameters
debugmcl_debug_t

◆ hpm_mcl_debug_send_scope()

void hpm_mcl_debug_send_scope ( mcl_debug_t debug)

Sends data in the buffer to the outside, Depending on how the callback function works, this function could potentially hang the application.

Parameters
debugmcl_debug_t

◆ hpm_mcl_debug_update_data()

void hpm_mcl_debug_update_data ( mcl_debug_t debug,
uint8_t  chn,
void *  data,
mcl_debug_data_type_t  type 
)

Update debug data.

Parameters
debugmcl_debug_t
chnchannel number
datainput data
typemcl_debug_data_type_t

Variable Documentation

◆ mcl_debug_fifo

uint8_t mcl_debug_fifo[MCL_DEBUG_FIFO+2] = {0xaa, 0xbb}