Go to the documentation of this file.
32 #define TRACE_LEVEL SCP_TRACE_LEVEL
56 buffer[
n++] = directive->
opcode;
62 TRACE_DEBUG(
"Sending SCP success directive...\r\n");
78 if(directive->
size <= (uint64_t) UINT32_MAX)
80 n +=
osSprintf(buffer +
n,
"%04" PRIo32
" %" PRIu32
" %s\n",
85 n +=
osSprintf(buffer +
n,
"%04" PRIo32
" %" PRIu64
" %s\n",
104 n +=
osSprintf(buffer +
n,
"%" PRIu32
" 0 %" PRIu32
" 0\n",
145 TRACE_DEBUG(
"SCP success directive received...\r\n");
151 TRACE_DEBUG(
"SCP error directive received...\r\n");
ScpOpcode
SCP directive opcodes.
#define osSprintf(dest,...)
SCP directive parameters.
#define osStrtoull(s, endptr, base)
Definitions common to SCP client and server.
#define osStrtoul(s, endptr, base)
#define TRACE_WARNING(...)
size_t scpFormatDirective(const ScpDirective *directive, char_t *buffer)
Format SCP directive.
error_t scpParseDirective(const char_t *buffer, ScpDirective *directive)
Parse SCP directive.
#define osMemset(p, value, length)