![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <ds1307.h>
Data Fields | |
| RTC_DEVICE | rtc |
| I2C_DEVICE * | i2c |
| 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. | |
| RTC_DEVICE rtc |
| I2C_DEVICE* i2c |
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.