section_hal.h
479 Bytes
#ifndef SECTION_H_
#define SECTION_H_
#include "bitutil_hal.h"
#include <stdio.h>
#define SECTION_HEADER_SIZE (6)
#define MAX_SECTION_SIZE (4096)
U8 getTid(unsigned char* section);
U16 getTidX(unsigned char* section);
int getSectionSize(unsigned char* payload);
U8 getSectionNumber(unsigned char *bitStream);
U32 getSectionCRC(unsigned char* section);
BOOL checkCRC32(unsigned char* section);
U32 calculateCrc(unsigned char *begin, unsigned count);
#endif /*SECTION_H_*/