forked from gatsby/df_datalink
*safer api
This commit is contained in:
@@ -92,7 +92,7 @@ void SysMonitor_Destroy(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @System Info
|
// @System Info
|
||||||
void SysMonitor_UpdateSysinfo(SYSINFO *info)
|
void SysMonitor_UpdateSysinfo(const SYSINFO *info)
|
||||||
{
|
{
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
buffIndx = GetWritable(sysMonitorInst->sysInfoCtrl);
|
buffIndx = GetWritable(sysMonitorInst->sysInfoCtrl);
|
||||||
@@ -102,7 +102,7 @@ void SysMonitor_UpdateSysinfo(SYSINFO *info)
|
|||||||
sysMonitorInst->sysInfoCtrl.wBusy = BUFF_NONE;
|
sysMonitorInst->sysInfoCtrl.wBusy = BUFF_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SysMonitor_UpdateSysinfoRaw(uint8_t *buff)
|
void SysMonitor_UpdateSysinfoRaw(const uint8_t *buff)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -208,7 +208,7 @@ void SysMonitor_GetSysinfoRaw(uint8_t *buff)
|
|||||||
/**
|
/**
|
||||||
* Update send payload by raw data.
|
* Update send payload by raw data.
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateSendPayloadRaw(uint8_t *buff, size_t len)
|
void SysMonitor_UpdateSendPayloadRaw(const uint8_t *buff, size_t len)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -245,7 +245,7 @@ void SysMonitor_GetSendPayloadRaw(uint8_t *buff, uint32_t *id, size_t len)
|
|||||||
/**
|
/**
|
||||||
* Update receive payload by raw data.
|
* Update receive payload by raw data.
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateRecvPayloadRaw(uint8_t *buff, size_t len)
|
void SysMonitor_UpdateRecvPayloadRaw(const uint8_t *buff, size_t len)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -282,7 +282,7 @@ void SysMonitor_GetRecvPayloadRaw(uint8_t *buff, uint32_t *id, size_t len)
|
|||||||
/**
|
/**
|
||||||
* Log send slot information
|
* Log send slot information
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateSendSlotLog(SLOTLOG *log)
|
void SysMonitor_UpdateSendSlotLog(const SLOTLOG *log)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -346,7 +346,7 @@ void SysMonitor_GetSendSlotLogRaw(uint8_t *buff)
|
|||||||
/**
|
/**
|
||||||
* Log receive slot information
|
* Log receive slot information
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateRecvSlotLog(SLOTLOG *log)
|
void SysMonitor_UpdateRecvSlotLog(const SLOTLOG *log)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -410,7 +410,7 @@ void SysMonitor_GetRecvSlotLogRaw(uint8_t *buff)
|
|||||||
/**
|
/**
|
||||||
* Log protocol running status.
|
* Log protocol running status.
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateProtocolLog(PRTCLLOG *log)
|
void SysMonitor_UpdateProtocolLog(const PRTCLLOG *log)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
@@ -475,7 +475,7 @@ void SysMonitor_GetProtocolLogRaw(uint8_t *buff)
|
|||||||
/**
|
/**
|
||||||
* Log hardware running status.
|
* Log hardware running status.
|
||||||
*/
|
*/
|
||||||
void SysMonitor_UpdateHardwareStatus(HWSTATE *state)
|
void SysMonitor_UpdateHardwareStatus(const HWSTATE *state)
|
||||||
{
|
{
|
||||||
ASSERT(sysMonitorInst != NULL);
|
ASSERT(sysMonitorInst != NULL);
|
||||||
uint8_t buffIndx;
|
uint8_t buffIndx;
|
||||||
|
|||||||
@@ -142,19 +142,19 @@ typedef struct
|
|||||||
int32_t SysMonitor_Init(void);
|
int32_t SysMonitor_Init(void);
|
||||||
void SysMonitor_Destroy(void);
|
void SysMonitor_Destroy(void);
|
||||||
|
|
||||||
void SysMonitor_UpdateSysinfo(SYSINFO *info);
|
void SysMonitor_UpdateSysinfo(const SYSINFO *info);
|
||||||
void SysMonitor_UpdateSysinfoRaw(uint8_t *buff);
|
void SysMonitor_UpdateSysinfoRaw(const uint8_t *buff);
|
||||||
void SysMonitor_GetSysinfo(SYSINFO *info);
|
void SysMonitor_GetSysinfo(SYSINFO *info);
|
||||||
void SysMonitor_GetSysinfoRaw(uint8_t *buff);
|
void SysMonitor_GetSysinfoRaw(uint8_t *buff);
|
||||||
|
|
||||||
void SysMonitor_UpdateSendPayloadRaw(uint8_t *buff, size_t len);
|
void SysMonitor_UpdateSendPayloadRaw(const uint8_t *buff, size_t len);
|
||||||
void SysMonitor_UpdateRecvPayloadRaw(uint8_t *buff, size_t len);
|
void SysMonitor_UpdateRecvPayloadRaw(const uint8_t *buff, size_t len);
|
||||||
void SysMonitor_GetSendPayloadRaw(uint8_t *buff, uint32_t *id, size_t len);
|
void SysMonitor_GetSendPayloadRaw(uint8_t *buff, uint32_t *id, size_t len);
|
||||||
void SysMonitor_GetRecvPayloadRaw(uint8_t *buff, uint32_t *id, size_t len);
|
void SysMonitor_GetRecvPayloadRaw(uint8_t *buff, uint32_t *id, size_t len);
|
||||||
|
|
||||||
void SysMonitor_UpdateSendSlotLog(SLOTLOG *log);
|
void SysMonitor_UpdateSendSlotLog(const SLOTLOG *log);
|
||||||
void SysMonitor_UpdateRecvSlotLog(SLOTLOG *log);
|
void SysMonitor_UpdateRecvSlotLog(const SLOTLOG *log);
|
||||||
void SysMonitor_UpdateProtocolLog(PRTCLLOG *log);
|
void SysMonitor_UpdateProtocolLog(const PRTCLLOG *log);
|
||||||
void SysMonitor_GetSendSlotLog(SLOTLOG *log);
|
void SysMonitor_GetSendSlotLog(SLOTLOG *log);
|
||||||
void SysMonitor_GetRecvSlotLog(SLOTLOG *log);
|
void SysMonitor_GetRecvSlotLog(SLOTLOG *log);
|
||||||
void SysMonitor_GetProtocolLog(PRTCLLOG *log);
|
void SysMonitor_GetProtocolLog(PRTCLLOG *log);
|
||||||
@@ -162,9 +162,8 @@ void SysMonitor_GetSendSlotLogRaw(uint8_t *buff);
|
|||||||
void SysMonitor_GetRecvSlotLogRaw(uint8_t *buff);
|
void SysMonitor_GetRecvSlotLogRaw(uint8_t *buff);
|
||||||
void SysMonitor_GetProtocolLogRaw(uint8_t *buff);
|
void SysMonitor_GetProtocolLogRaw(uint8_t *buff);
|
||||||
|
|
||||||
void SysMonitor_UpdateHardwareStatus(HWSTATE *state);
|
void SysMonitor_UpdateHardwareStatus(const HWSTATE *state);
|
||||||
void SysMonitor_GetHardwareStatus(HWSTATE *state);
|
void SysMonitor_GetHardwareStatus(HWSTATE *state);
|
||||||
void SysMonitor_GetHardwareStatusRaw(uint8_t *buff);
|
|
||||||
|
|
||||||
void SysMonitor_GetSyslog(SYSLOG *log);
|
void SysMonitor_GetSyslog(SYSLOG *log);
|
||||||
void SysMonitor_GetSyslogRaw(uint8_t *buff);
|
void SysMonitor_GetSyslogRaw(uint8_t *buff);
|
||||||
|
|||||||
Reference in New Issue
Block a user