David Giles
/
CM-MBED_RSEDP_Test_Suite_LPC1768_V3
This is a complete listing of the RS-EDP software for the mbed module to support the RS-EDP platform.
HeaderFiles/RSEDP_COM_PCF8583_Real_Time_Clock.h@0:5b7639d1f2c4, 2010-11-19 (annotated)
- Committer:
- DavidGilesHitex
- Date:
- Fri Nov 19 09:49:16 2010 +0000
- Revision:
- 0:5b7639d1f2c4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidGilesHitex | 0:5b7639d1f2c4 | 1 | /* Header File For Real time clock IC */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 2 | /* ********************************** */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 3 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 4 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 5 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 6 | /* Function Prototypes Here */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 7 | extern sint32_t RSEDP_COM_setup_PCF8583(uint8_t Slave_Address, uint8_t mode); /* Setup the device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 8 | extern sint32_t RSEDP_COM_PCF8583_Read_Status_Register(uint8_t Slave_Address, uint8_t *status_register); /* Read the status register of the device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 9 | extern sint32_t RSEDP_COM_PCF8583_Write_Status_Register(uint8_t Slave_Address, uint8_t payload); /* Status register write */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 10 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 11 | /* RTC Function */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 12 | extern sint32_t RSEDP_COM_PCF8583_Write_RTC(uint8_t Slave_Address, uint8_t *RTC_Array); /* Write raw data to the RTC device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 13 | extern sint32_t RSEDP_COM_PCF8583_Read_RTC(uint8_t Slave_Address, uint8_t *RTC_Array); /* Read raw data from the real time clock */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 14 | extern sint32_t RSEDP_COM_PCF8583_Set_Clock(uint8_t Slave_Address, uint8_t hours, uint8_t minutes, uint8_t seconds,uint8_t F24hour_flag, uint8_t AMPM_flag); /* Set the clock only */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 15 | extern sint32_t RSEDP_COM_PCF8583_Set_Date(uint8_t Slave_Address, uint8_t dow, uint8_t day,uint8_t month, uint16_t year); /* Set the date only */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 16 | extern sint32_t RSEDP_COM_PCF8583_Read_Clock(uint8_t Slave_Address, uint8_t *Time_Array); /* Read the time component only */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 17 | extern sint32_t RSEDP_COM_PCF8583_Read_Date(uint8_t Slave_Address, uint8_t *Date_Array); /* Read the date component only */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 18 | extern sint32_t RSEDP_COM_PCF8583_Read_Clock_And_Date(uint8_t Slave_Address, uint8_t *Time_Array,uint8_t *Date_Array); /* Read time and date */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 19 | extern sint32_t RSEDP_COM_PCF8583_Start_Clock(uint8_t Slave_Address); /* Start the clock counting */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 20 | extern sint32_t RSEDP_COM_PCF8583_Stop_Clock(uint8_t Slave_Address); /* Stop the clock */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 21 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 22 | /* Battery Maintained SRAM functions */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 23 | extern sint32_t RSEDP_COM_PCF8583_Read_SRAM(uint8_t Slave_Address, uint8_t *read_data,uint8_t address); /* Read data from the battery maintained SRAM */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 24 | extern sint32_t RSEDP_COM_PCF8583_Write_SRAM(uint8_t Slave_Address, uint8_t payload,uint8_t address); /* Write data to the battery maintained SRAM */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 25 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 26 | /* Print functions for time and date */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 27 | extern void RSEDP_COM_Print_Time(uint8_t *Time_Array); |
DavidGilesHitex | 0:5b7639d1f2c4 | 28 | extern void RSEDP_COM_Print_Date(uint8_t *Date_Array); |
DavidGilesHitex | 0:5b7639d1f2c4 | 29 | extern void RSEDP_COM_Print_Time_Date_Year(uint8_t *RTC_Array); |
DavidGilesHitex | 0:5b7639d1f2c4 | 30 |