30 #define MAX_UART_CMD 80
31 #define MAX_UART_RPL 80
51 char cmdString[MAX_UART_CMD];
73 char cmdString[MAX_UART_CMD];
97 uint8_t cmdData[MAX_UART_CMD];
114 for (i = 0; i < cmdNData; ++i)
128 uint8_t rplBuf[MAX_UART_RPL];
132 for (i = 0; i < rplNData; ++i)
bool bpsDbgCmdReply(uint8_t cmdCode, uint8_t *cmdPData, uint8_t cmdNData, uint8_t rplCode, uint8_t **rplPData, uint8_t rplNData)
Exposes the low-level interface to the BPS.
bool dbReadU8(DataBuffer *buf, uint8_t *byte)
Reads an unsigned byte.
bool dbReadString(DataBuffer *buf, char *s, int size)
Reads a string from the stream.
bool bseConfigure()
Base Configure event.
System start up and management.
bool bseReset()
Base Reset event.
static bool msgTxCurError(MsgId *id)
Invoke to reply the current global error.
Defines a DataBuffer structure.
Handles MCF packed messages from the higher protocol layer.
Manages the global system error.
bool msgTxReply(MsgId *id, DataBuffer *buf)
Invoke to send a reply.
DataBuffer reads and writes data into a buffer in the same format as defined in the data Java DataOut...
bool msgRxBufCheck(DataBuffer *buf)
Checks the received buffer, and logs an error if there is something wrong.
#define E_OUTOFMEMORY
Generic error: There is no more memory.
This module is responsible for distributing error codes.
bool dbWriteU8(DataBuffer *buf, uint8_t byte)
Writes a unsigned byte.
If defined, events will not require an acknowledge.
bool dbWriteString(DataBuffer *buf, const char *s, int max)
Writes a String as 'sort of' UTF-8 encoding, as defined in the Java DataOuput and DataInput writeUTF ...
bool errSet(uint32_t code, const char *error, const char *name)
Sets an error.
#define ERROR(CODE,...)
Expands an error code to an error code with a description (if ERROR_W_DESCR is declared).
EDFA-EAU (30-C3-20-C) Uart driver.
#define DB_STR_OVERHEAD
Overhead for a String.
#define DB_BUF_INIT(PTR, LEN)
Simple buffer initialization.
static bool msgTxReplyAck(MsgId *id)
Replies a simple ACK with no content.
bool edfaDbgCmdReply(const char *cmd, char **retString)
Execute an EDFA debug command, and returns the reply.
bool edfaDbgCmd(const char *cmd)
Execute an EDFA debug command w/o a reply.