@ DCF77_TIMEOUT
communication timed out
dcf77_tick_cb_t tick_cb
Callback to be called if a new minute starts.
Bit definitions for DCF77 transmission.
int dcf77_init(dcf77_t *dev, const dcf77_params_t *params)
Initialize a new DCF77 device.
int dcf77_get_time(dcf77_t *dev, struct tm *time)
get a new timestamp from the device.
uint8_t bitCounter
Counter of the Bits in a Bitsequenz.
dcf77_bits_t last_bitseq
contains all Bits from a last cycle
Device descriptor for DCF77 sensor devices.
void * tick_cb_args
Arguments for the tick callback.
@ DCF77_INIT_ERROR
Initialization error.
void dcf77_set_tick_cb(dcf77_t *dev, dcf77_tick_cb_t cb, void *arg)
Set a tick callback for DCF77.
Configuration parameters for DCF77 devices.
@ DCF77_NOCSUM
checksum error
gpio_t pin
GPIO pin of the device's data pin.
Low-level GPIO peripheral driver interface definitions.
gpio_mode_t
Available pin modes.
dcf77_bits_t bitseq
contains all Bits from a current cycle
uint8_t internal_state
internal States
gpio_mode_t in_mode
input pin configuration from the device, without pull resistor
struct dcf77 dcf77_t
Device descriptor for DCF77 sensor devices.
Timeinformation bitfields for DCF77 devices.
Adds include for missing inttype definitions.
void(* dcf77_tick_cb_t)(struct dcf77 *dev, void *arg)
Signature for tick callback.
uint32_t startTime
Timestamp to measure the term of the level.
xtimer interface definitions
dcf77_params_t params
Device parameters.