Loading...
Searching...
No Matches

Interface definition for the dcf77 sensor driver. More...

Detailed Description

Interface definition for the dcf77 sensor driver.

Author
Michel Gerlach miche.nosp@m.l.ge.nosp@m.rlach.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file dcf77.h.

#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
#include "xtimer.h"
#include "time.h"
#include "periph/gpio.h"
#include "dcf77_internal.h"
+ Include dependency graph for dcf77.h:
+ This graph shows which files directly or indirectly include this file:

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.
 
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.
 
int dcf77_get_time (dcf77_t *dev, struct tm *time)
 get a new timestamp from the device.
 
void dcf77_set_tick_cb (dcf77_t *dev, dcf77_tick_cb_t cb, void *arg)
 Set a tick callback for DCF77.