techidee GmbH
Project: NewsBox
Author: Thomas Fruehwald
Compiler: gcc
Module: DAB data group decoder
Creation date: 2003-08-02
Last modified: 2004-02-25 (rbr)
This decoder will accept DAB data groups, check their validity and pass on the valid (Journaline) data groups.
To use it, you have to implement the callback for handling the output in your application. Then use createDec to create an instance, putData to put DAB data groups into the decoder and in the end, use deleteDec to destroy the instance.
Go to the source code of this file.
Compounds | |
struct | DAB_DATAGROUP_DECODER_msc_datagroup_header_t |
MSC data group header. More... | |
Typedefs | |
typedef const void * | DAB_DATAGROUP_DECODER_t |
dab data group decoder instance type | |
typedef void( | DAB_DATAGROUP_DECODER_data )(const DAB_DATAGROUP_DECODER_msc_datagroup_header_t *header, const unsigned long len, const unsigned char *buf, void *arg) |
DAB data group callback function. | |
Functions | |
DAB_DATAGROUP_DECODER_t | DAB_DATAGROUP_DECODER_createDec (DAB_DATAGROUP_DECODER_data *data, void *arg) |
Create a DAB data group decoder instance. | |
void | DAB_DATAGROUP_DECODER_deleteDec (const DAB_DATAGROUP_DECODER_t decoder) |
Delete a DAB data group decoder instance. | |
unsigned long | DAB_DATAGROUP_DECODER_putData (const DAB_DATAGROUP_DECODER_t decoder, const unsigned long len, const unsigned char *buf) |
Put data into DAB data group decoder. |
|
DAB data group callback function.
A callback function of this type must be registered at creation time of the DAB data group decoder instance. It will be called whenever a DAB data group fed into the decoder using DAB_DATAGROUP_DECODER_putData has been processed successfully, i.e. it is a valid (Journaline specific) data group and can fed into the news service decoder.
|
|
dab data group decoder instance type
|
|
Create a DAB data group decoder instance.
call this before anything else
|
|
Delete a DAB data group decoder instance.
call this at shutdown time
|
|
Put data into DAB data group decoder.
The input for the DAB data group decoder consists of complete DAB data groups. A CRC check is done if the CRC flag is set in the data group header.
|