Loading...
Searching...
No Matches
ds3234.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 SKF AB
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
22
23#include <periph/gpio.h>
24#include <periph/spi.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
33typedef struct {
34 spi_t spi;
36 gpio_t cs;
38
43 DS3234_OK = 0,
44 DS3234_NO_DEV = 1,
45 DS3234_NO_SPI = 2
46};
47
60
61#ifdef __cplusplus
62}
63#endif
64
spi_clk_t
Definition periph_cpu.h:348
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:42
Low-level SPI peripheral driver interface definition.
Parameters for the DS3234 device driver.
Definition ds3234.h:33
spi_clk_t clk
SPI bus clock speed.
Definition ds3234.h:35
gpio_t cs
CS pin GPIO handle.
Definition ds3234.h:36
spi_t spi
SPI bus the sensor is connected to.
Definition ds3234.h:34