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 u_long rtc_status
Used in: PcfRtcClearStatus()  
  PcfRtcGetStatus()  

Global Function PcfRtcClearStatus()

int PcfRtcClearStatus ( u_long 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 ( u_long* 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()
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcReadRegs()

int PcfRtcReadRegs ( u_char reg, u_char* buff, size_t cnt )
Prototyped in: nut/include/dev/pcf8563.h
Calls: TwMasterTransact()
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()
Used in:   nut/dev/pcf8563.c

Global Function PcfRtcWrite()

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