embeddedlibrary
reusable software modules for embedded systems
subsys.h File Reference

Go to the source code of this file.

Data Structures

struct  version_mmb_t
 
union  version_t
 version union More...
 

Macros

#define SYSTEM_VERSION   0x03010001u
 subsystem module version number
 
#define RECEIVE_MAX_LENGTH   64
 default length of receive line for commands
 
#define RECEIVE_START_CHAR   '$'
 start character for command lines
 
#define RECEIVE_STOP_CHAR   '\r'
 stop character for command lines
 
#define RECEIVE_MAX_ARGC   8
 max number of arguments after the command name
 
#define GetLogTimestamp()   TimeNow()
 

Functions

void LogStr (char *str,...)
 
void LogMsg (uint8_t subsystem_id, char *str,...)
 
uint8_t Subsystem_Init (char *name, version_t version, void(*callback)(int argc, char *argv[]))
 
void Subsystem_RegisterCallback (uint8_t subsystem_id, void(*callback)(int argc, char *argv[]))
 
char * GetSubsystemName (uint8_t subsystem_id)
 
void Log_EchoOn (void)
 
void Log_EchoOff (void)
 
uint8_t Log_GetEcho (void)
 
void Log_Header (uint8_t subsystem_id)
 
void MuteAll (void)
 
void UnmuteAll (void)
 
void MuteSys (uint8_t sys_id)
 
void UnmuteSys (uint8_t sys_id)
 
uint16_t ArgToU16 (char *arg)
 
uint8_t ArgToU8 (char *arg)
 
uint32_t ArgToU32 (char *arg)