Functions | |
vbi_bool | vbi_decode_vps_cni (unsigned int *cni, const uint8_t buffer[13]) |
vbi_bool | vbi_encode_vps_cni (uint8_t buffer[13], unsigned int cni) |
vbi_bool vbi_decode_vps_cni | ( | unsigned int * | cni, | |
const uint8_t | buffer[13] | |||
) |
cni | CNI of type VBI_CNI_TYPE_VPS is stored here. | |
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. |
The code 0xDC3 is translated according to TR 101 231: "As this code is used for a time in two networks a distinction for automatic tuning systems is given in data line 16 [VPS]: bit 3 of byte 5 = 1 for the ARD network / = 0 for the ZDF network."
TRUE
, no error checking possible. It may be prudent to wait until two identical packets have been received.vbi_bool vbi_encode_vps_cni | ( | uint8_t | buffer[13], | |
unsigned int | cni | |||
) |
buffer | VPS packet as defined for VBI_SLICED_VPS , i.e. 13 bytes without clock run-in and start code. | |
cni | CNI of type VBI_CNI_TYPE_VPS. |
FALSE
if cni is invalid; in this case buffer remains unmodified.