DS3234 Extremely Accurate SPI RTC

Driver for Maxim DS3234 Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM. More...

Detailed Description

Driver for Maxim DS3234 Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM.

Files

file  ds3234_params.h
 Default configuration for DS3234 devices.
 
file  ds3234_regs.h
 Register map for the DS323x driver.
 
file  ds3234.h
 DS3234 device driver.
 

Data Structures

struct  ds3234_params_t
 Parameters for the DS3234 device driver. More...
 

Enumerations

enum  ds3234_return_codes { DS3234_OK = 0, DS3234_NO_DEV = 1, DS3234_NO_SPI = 2 }
 Return codes for the DS3234 device driver.
 

Functions

int ds3234_pps_init (const ds3234_params_t *params)
 Initialize the DS3234 RTC as a PPS device. More...
 

Function Documentation

◆ ds3234_pps_init()

int ds3234_pps_init ( const ds3234_params_t params)

Initialize the DS3234 RTC as a PPS device.

This will enable square wave output on the SQW pin at 1 Hz

Parameters
paramsDS3234 circuit parameters
Returns
DS3234_OK on success
DS3234_NO_SPI if cannot initiate SPI
DS3234_NO_DEV if the device is not found on the bus