werwere
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of COM_MNG_TMTC_SIMPLE_pl123 by
Diff: Structures.h
- Revision:
- 52:0bd68655c651
- Parent:
- 23:c89376564196
- Child:
- 72:9eea047ebd0c
- Child:
- 102:80c911a6e736
--- a/Structures.h Tue Jan 12 15:08:29 2016 +0000 +++ b/Structures.h Thu Jan 14 06:16:42 2016 +0000 @@ -49,6 +49,9 @@ #define GETapid(x) ( ( (x->TC_string[1]) & 0xA0 ) >> 6 ) #define GETexec_status(x) ( (x->flags) & EXEC_STATUS_MASK ) #define GETpacket_seq_count(x) (x->TC_string[0]) +#define GETservice_type(x) ( (x->TC_string[2]) & 0xF0 ) +#define GETservice_subtype(x) ( (x->TC_string[2]) & 0x0F ) +#define GETpid(x) (x->TC_string[3]) //x should be a Base_tc pointer //y should be a 8-bit number with relevant data in LSB