nm_headers.h
Go to the documentation of this file.
151};
243static inline void nm_header_init_pkt_data(struct nm_header_pkt_data_s*p_header, nm_core_tag_t tag_id, nm_seq_t seq, uint8_t flags,
255static inline void nm_header_init_data(struct nm_header_data_s*p_header, nm_core_tag_t tag_id, nm_seq_t seq, uint8_t flags,
267static inline void nm_header_init_short_data(struct nm_header_short_data_s*p_header, nm_core_tag_t tag_id,
276static inline void nm_header_init_msg(union nm_header_ctrl_generic_s*p_ctrl, nm_core_tag_t tag_id, nm_seq_t seq, nm_len_t msg_len)
284static inline void nm_header_init_rdv(union nm_header_ctrl_generic_s*p_ctrl, struct nm_req_s*p_pack,
300static inline void nm_header_init_rtr(union nm_header_ctrl_generic_s*p_ctrl, nm_core_tag_t tag, nm_seq_t seq,
312static inline void nm_header_init_ack(union nm_header_ctrl_generic_s*p_ctrl, nm_core_tag_t tag, nm_seq_t seq)
#define NM_REQ_FLAG_PACK_SYNCHRONOUS
flag pack as synchronous (i.e.
Definition nm_core_interface.h:203
assert(p_data->ops.p_traversal !=NULL)
static void nm_header_init_rdv(union nm_header_ctrl_generic_s *p_ctrl, struct nm_req_s *p_pack, nm_len_t chunk_len, nm_len_t chunk_offset, int is_contig_data, uint8_t rdv_flags)
Definition nm_headers.h:284
static void nm_header_init_msg(union nm_header_ctrl_generic_s *p_ctrl, nm_core_tag_t tag_id, nm_seq_t seq, nm_len_t msg_len)
Definition nm_headers.h:276
PUK_LIST_CREATE_FUNCS(nm_ctrl_chunk)
static void nm_header_init_data(struct nm_header_data_s *p_header, nm_core_tag_t tag_id, nm_seq_t seq, uint8_t flags, uint16_t skip, nm_len_t len, nm_len_t chunk_offset)
Definition nm_headers.h:255
static void nm_header_init_debug(struct nm_header_debug_s *p_header, int req)
Definition nm_headers.h:319
static void nm_header_init_ack(union nm_header_ctrl_generic_s *p_ctrl, nm_core_tag_t tag, nm_seq_t seq)
Definition nm_headers.h:312
#define NM_PROTO_FLAG_ACKREQ
data sent as synchronous send- please send an ack on first chunk
Definition nm_headers.h:54
static size_t nm_header_ctrl_size(const union nm_header_ctrl_generic_s *const p_ctrl)
Definition nm_headers.h:221
union nm_header_ctrl_generic_s __attribute__
PUK_LIST_DECLARE_TYPE(nm_ctrl_chunk)
static void nm_header_init_short_data(struct nm_header_short_data_s *p_header, nm_core_tag_t tag_id, nm_seq_t seq, nm_len_t len)
Definition nm_headers.h:267
static void nm_header_init_rtr(union nm_header_ctrl_generic_s *p_ctrl, nm_core_tag_t tag, nm_seq_t seq, nm_trk_id_t trk_id, nm_len_t chunk_offset, nm_len_t chunk_len, nm_len_t payload_size)
Definition nm_headers.h:300
static void nm_header_init_pkt_data(struct nm_header_pkt_data_s *p_header, nm_core_tag_t tag_id, nm_seq_t seq, uint8_t flags, nm_len_t len, nm_len_t chunk_offset)
Definition nm_headers.h:243
PUK_ALLOCATOR_TYPE_SINGLE(nm_ctrl_chunk, struct nm_ctrl_chunk_s)
allocator for control chunks
uint8_t nm_proto_t
protocol flags- not part of the public API, but needed for inline
Definition nm_types.h:99
PUK_LIST_LINK(nm_ctrl_chunk)
base header that matches all data/ctrl headers first fields (except header_strat)
Definition nm_headers.h:137
Definition nm_headers.h:129
Definition nm_headers.h:106
Definition nm_headers.h:118
Definition nm_headers.h:78
uint16_t skip
skip offset for data buffer, relative to v0 end (0xFFFF for inline data)
Definition nm_headers.h:84
header for msg matching information only, contains no data; for cases where early information is need...
Definition nm_headers.h:98
Definition nm_headers.h:62
header for very short data; single chunk assumed (chunk_offset=0, chunk_len=len, FLAG_LASTCHUNK)
Definition nm_headers.h:89
nm_core_tag_t tag
tag to send to/from (works in combination with tag_mask for recv)
Definition nm_core_interface.h:490
struct nm_req_s::@15::@17 pack
struct nm_header_short_data_s short_data
Definition nm_headers.h:156