Interface definition for the dcf77 sensor driver. More...
#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
#include "xtimer.h"
#include "time.h"
#include "periph/gpio.h"
#include "dcf77_internal.h"
Go to the source code of this file.
Data Structures | |
struct | dcf77_params_t |
Configuration parameters for DCF77 devices. More... | |
struct | dcf77 |
Device descriptor for DCF77 sensor devices. More... | |
Typedefs | |
typedef void(* | dcf77_tick_cb_t) (struct dcf77 *dev, void *arg) |
Signature for tick callback. More... | |
typedef struct dcf77 | dcf77_t |
Device descriptor for DCF77 sensor devices. | |
Enumerations | |
enum | { DCF77_OK = 0, DCF77_NOCSUM = -1, DCF77_TIMEOUT = -2, DCF77_INIT_ERROR = -3 } |
Possible return codes. More... | |
Functions | |
int | dcf77_init (dcf77_t *dev, const dcf77_params_t *params) |
Initialize a new DCF77 device. More... | |
int | dcf77_get_time (dcf77_t *dev, struct tm *time) |
get a new timestamp from the device. More... | |
void | dcf77_set_tick_cb (dcf77_t *dev, dcf77_tick_cb_t cb, void *arg) |
Set a tick callback for DCF77. More... | |