add_fec_plid.c

Go to the documentation of this file.
00001 
00024 #include <stdio.h>
00025 
00026 void add_fec_plid_128(unsigned int sbn, unsigned int esi) {
00027   printf("%c", (unsigned char)((sbn >> 24) & 0xFF));
00028   printf("%c", (unsigned char)((sbn >> 16) & 0xFF));
00029   printf("%c", (unsigned char)((sbn >> 8) & 0xFF));
00030   printf("%c", (unsigned char)(sbn & 0xFF));
00031   printf("%c", (unsigned char)((esi >> 24) & 0xFF));
00032   printf("%c", (unsigned char)((esi >> 16) & 0xFF));
00033   printf("%c", (unsigned char)((esi >> 8) & 0xFF));
00034   printf("%c", (unsigned char)(esi & 0xFF));
00035 }
00036 
00037 void add_fec_plid_129(unsigned int sbn, unsigned short sbl, unsigned short esi) {
00038   printf("%c", (unsigned char)((sbn >> 24) & 0xFF));
00039   printf("%c", (unsigned char)((sbn >> 16) & 0xFF));
00040   printf("%c", (unsigned char)((sbn >> 8) & 0xFF));
00041   printf("%c", (unsigned char)(sbn & 0xFF));
00042   printf("%c", (unsigned char)((sbl >> 8) & 0xFF));
00043   printf("%c", (unsigned char)(sbl & 0xFF));
00044   printf("%c", (unsigned char)((esi >> 8) & 0xFF));
00045   printf("%c", (unsigned char)(esi & 0xFF));
00046 }
00047 
00048 void add_fec_plid_0_130(unsigned short sbn, unsigned short esi) {
00049   printf("%c", (unsigned char)((sbn >> 8) & 0xFF));
00050   printf("%c", (unsigned char)(sbn & 0xFF));
00051   printf("%c", (unsigned char)((esi >> 8) & 0xFF));
00052   printf("%c", (unsigned char)(esi & 0xFF));
00053 }
00054 
00055 void add_length_indicator(unsigned short li) {
00056   printf("%c", (unsigned char)((li >> 8) & 0xFF));
00057   printf("%c", (unsigned char)(li & 0xFF));
00058 }

Generated on Fri Mar 9 19:59:52 2007 for MAD-FCL by  doxygen 1.5.0