I have some nesC
code, and there is some sturct definitions like the example below:
typedef nx_struct serial_header {
nx_am_addr_t dest;
nx_am_addr_t src;
nx_uint8_t length;
nx_am_group_t group;
nx_am_id_t type;
} serial_header_t;
I cant get the idea why in the first line they wrote serial_header
while in the last line they wrote serial_header_t
. I am wondering which one is the actual name of this struct and what does that _t
added in the last line means?