nano-client API Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Data Structures

struct  NANO_MessageBufferHeader
 TODO. More...
 
struct  NANO_MessageBuffer
 TODO. More...
 

Macros

#define NANO_MessageBuffer_append(s_, next_)
 Store the specified NANO_MessageBuffer as the next in the current chain.
 
#define NANO_MessageBuffer_append_msg(s_, next_)
 Store the specified NANO_MessageBuffer as the first of the next chain.
 
#define NANO_MessageBuffer_data_len(s_)   ((NANO_u16)(((s_)->hdr.data & 0x0000ffff)))
 Return the value of the data length field.
 
#define NANO_MESSAGEBUFFER_DATA_LEN_MAX   ((NANO_usize)NANO_U16_MAX)
 Maximum length of a payload stored in a NANO_MessageBuffer.
 
#define NANO_MessageBuffer_data_len_msg(s_, len_)
 Return the total sum of the data length field of all the NANO_MessageBuffer in the current chain.
 
#define NANO_MessageBuffer_data_ptr(s_)
 Get a pointer to the pointer to the data buffer, offset by the value of the offset field.
 
#define NANO_MessageBuffer_flags_inline(s_)   ((s_)->hdr.flags & NANO_MESSAGEBUFFERFLAGS_INLINE)
 Check if the INLINE flag is set.
 
#define NANO_MessageBuffer_flags_set_inline(s_)
 Enable the INLINE flag.
 
#define NANO_MESSAGEBUFFER_INITIALIZER
 TODO.
 
#define NANO_MESSAGEBUFFER_INLINE_SIZE(size_)
 TODO.
 
#define NANO_MESSAGEBUFFER_INLINE_SIZE_BYTES(size_)
 TODO.
 
#define NANO_MESSAGEBUFFER_MAX_INLINE_PAYLOAD(buffer_size_)   ((buffer_size_) - sizeof(NANO_MessageBufferHeader))
 TODO.
 
#define NANO_MessageBuffer_next(s_)   ((s_)->hdr.next)
 Get a pointer to the next NANO_MessageBuffer in the current chain.
 
#define NANO_MessageBuffer_next_msg(s_)   ((s_)->hdr.next_msg)
 Get a pointer to the first NANO_MessageBuffer in the next chain.
 
#define NANO_MessageBuffer_set_data_len(s_, l_)
 Set the data length field.
 
#define NANO_MessageBuffer_set_external_data(s_, data_, data_len_)
 Store the specified pointer to the data buffer, its length in the data length field, and disable the INLINE flag.
 
#define NANO_MessageBuffer_unlink(s_)
 Reset the link to the next NANO_MessageBuffer in the current chain.
 
#define NANO_MessageBuffer_unlink_msg(s_)
 Reset the link to the first NANO_MessageBuffer in the next chain.
 
#define NANO_MESSAGEBUFFERHEADER_INITIALIZER
 TODO.
 

Typedefs

typedef NANO_u32 NANO_MessageBufferData
 TODO.
 

Detailed Description