Loading...
Searching...
No Matches
ds3234.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 SKF AB
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
24#ifndef DS3234_H
25#define DS3234_H
26
27#include <periph/gpio.h>
28#include <periph/spi.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
37typedef struct {
38 spi_t spi;
40 gpio_t cs;
42
47 DS3234_OK = 0,
48 DS3234_NO_DEV = 1,
49 DS3234_NO_SPI = 2
50};
51
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* DS3234_H */
spi_clk_t
Definition periph_cpu.h:352
Low-level GPIO peripheral driver interface definitions.
int ds3234_pps_init(const ds3234_params_t *params)
Initialize the DS3234 RTC as a PPS device.
ds3234_return_codes
Return codes for the DS3234 device driver.
Definition ds3234.h:46
Low-level SPI peripheral driver interface definition.
Parameters for the DS3234 device driver.
Definition ds3234.h:37
spi_clk_t clk
SPI bus clock speed.
Definition ds3234.h:39
gpio_t cs
CS pin GPIO handle.
Definition ds3234.h:40
spi_t spi
SPI bus the sensor is connected to.
Definition ds3234.h:38