Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_DS1307_RTC_DEVICE Struct Reference

#include <ds1307.h>

Data Fields

RTC_DEVICE rtc
I2C_DEVICEi2c
 The I2C device this RTC is connected to.
uint16_t address
 The I2C address of the device.
uint32_t chip
 The chip type (eg DS1307_CHIP_DS1307).
uint8_t rtcreg
 The register offset for the RTC.
uint8_t nvramreg
 The register offset for the NVRAM.
uint8_t nvramsize
 The NVRAM size.
uint8_t controlreg
 The control register offset.
uint32_t readcount
 Number of direct RTC/NVRAM/Control reads to the device.
uint32_t writecount
 Number of direct RTC/NVRAM/Control writes to the device.

Field Documentation

◆ rtc

◆ i2c

I2C_DEVICE* i2c

The I2C device this RTC is connected to.

◆ address

uint16_t address

The I2C address of the device.

◆ chip

uint32_t chip

The chip type (eg DS1307_CHIP_DS1307).

◆ rtcreg

uint8_t rtcreg

The register offset for the RTC.

◆ nvramreg

uint8_t nvramreg

The register offset for the NVRAM.

◆ nvramsize

uint8_t nvramsize

The NVRAM size.

◆ controlreg

uint8_t controlreg

The control register offset.

◆ readcount

uint32_t readcount

Number of direct RTC/NVRAM/Control reads to the device.

◆ writecount

uint32_t writecount

Number of direct RTC/NVRAM/Control writes to the device.


The documentation for this struct was generated from the following file: