C API for BALTECH SDK
rtc.h File Reference

If the reader has a Real Time Clock (RTC) on board, its current time can be set and retrieved with commands from this command group. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Rtc_ErrHardware   BRP_ERR_STATUS(0x0400, 0x01)
 The RTC hardware is defect. More...
 
#define BRP_Rtc_ErrVoltageLow   BRP_ERR_STATUS(0x0400, 0x02)
 The battery of the RTC is low. More...
 

Functions

brp_errcode brp_Rtc_GetTime (brp_protocol protocol, unsigned ClockId, unsigned *Now)
 Retrieve current time of on-board RTC. More...
 
brp_errcode brp_Rtc_SetTime (brp_protocol protocol, unsigned ClockId, unsigned Now)
 Set the time of the on-board RTC. More...
 

Detailed Description

If the reader has a Real Time Clock (RTC) on board, its current time can be set and retrieved with commands from this command group.

Definition in file rtc.h.