File nut/dev/pcf8563.c

References Functions: PcfRtcClearStatus() nut/dev/pcf8563.c
  PcfRtcGetAlarm() nut/dev/pcf8563.c
  PcfRtcGetClock() nut/dev/pcf8563.c
  PcfRtcGetStatus() nut/dev/pcf8563.c
  PcfRtcInit() nut/dev/pcf8563.c
  PcfRtcSetAlarm() nut/dev/pcf8563.c
  PcfRtcSetClock() nut/dev/pcf8563.c

Included Files


Preprocessor definitions

#define I2C_SLA_RTC 0x51

Global Variable rtcPcf8563

NUTRTC rtcPcf8563
Visible in:   nut/dev/pcf8563.c

Local Variables

rtc_status
static uint32_t rtc_status
Used in: PcfRtcClearStatus()  
  PcfRtcGetStatus()  

Global Function PcfRtcClearStatus()

int PcfRtcClearStatus ( uint32_t sflgs )
Prototyped in: nut/include/dev/pcf8563.h
Used in:   nut/dev/pcf8563.c
References Variables: rtc_status nut/dev/pcf8563.c

Global Function PcfRtcGetAlarm()

int PcfRtcGetAlarm ( int idx, struct _tm* tm, int* aflgs )
Prototyped in: nut/include/dev/pcf8563.h
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcGetClock()

int PcfRtcGetClock ( struct _tm* tm )
Prototyped in: nut/include/dev/pcf8563.h
Calls: PcfRtcReadRegs() nut/dev/pcf8563.c
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcGetStatus()

int PcfRtcGetStatus ( uint32_t* sflgs )
Prototyped in: nut/include/dev/pcf8563.h
Calls: PcfRtcReadRegs() nut/dev/pcf8563.c
Called by: PcfRtcInit() nut/dev/pcf8563.c
Used in:   nut/dev/pcf8563.c
References Variables: rtc_status nut/dev/pcf8563.c

Global Function PcfRtcInit()

int PcfRtcInit ( void )
Prototyped in: nut/include/dev/pcf8563.h
Calls: PcfRtcGetStatus() nut/dev/pcf8563.c
  TwInit() nut/boot/bootmon/twbbi.c
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcReadRegs()

int PcfRtcReadRegs ( uint8_t reg, uint8_t* buff, size_t cnt )
Prototyped in: nut/include/dev/pcf8563.h
Calls: TwMasterTransact() nut/boot/bootmon/twbbi.c
Called by: PcfRtcGetClock() nut/dev/pcf8563.c
  PcfRtcGetStatus() nut/dev/pcf8563.c

Global Function PcfRtcSetAlarm()

int PcfRtcSetAlarm ( int idx, const struct _tm* tm, int aflgs )
Prototyped in: nut/include/dev/pcf8563.h
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcSetClock()

int PcfRtcSetClock ( const struct _tm* tm )
Prototyped in: nut/include/dev/pcf8563.h
Calls: PcfRtcWrite() nut/dev/pcf8563.c
  memset() nut/c/string/memset.c
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcWrite()

int PcfRtcWrite ( int nv, const uint8_t* buff, size_t cnt )
Prototyped in: nut/include/dev/pcf8563.h
Calls: TwMasterTransact() nut/boot/bootmon/twbbi.c
Called by: PcfRtcSetClock() nut/dev/pcf8563.c