forked from rene0/dcf77pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bits1to14.h
45 lines (37 loc) · 985 Bytes
/
bits1to14.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2014-2018 René Ladan
// SPDX-License-Identifier: BSD-2-Clause
#ifndef DCF77PI_BITS1TO14_H
#define DCF77PI_BITS1TO14_H
/** Length of the third-party buffer in bits */
#define TPBUFLEN 40
struct GB_result;
/** Indicates the type of the third party contents. */
enum eTP {
/** unknown content */
eTP_unknown,
/** Meteotime weather (encrypted) */
eTP_weather,
/** German civil warning (unused) */
eTP_alarm
};
/**
* Add the current bit value to the third party buffer.
*
* @param minute The current value of the minute.
* @param bitpos The current bit position.
* @param bit The current bit information.
*/
void fill_thirdparty_buffer(int minute, int bitpos, struct GB_result bit);
/**
* Retrieve the third party buffer.
*
* @return The third party buffer.
*/
const unsigned * const get_thirdparty_buffer(void);
/**
* Retrieve the type of the third party contents.
*
* @return The third party status.
*/
enum eTP get_thirdparty_type(void);
#endif