Bases: object
Representation of an MCP79410 RTCC chip.
Checks if there was a power failure.
| Parameters: | none – | 
|---|---|
| Returns: | PowerFail - TRUE if there was a power failure, FALSE otherwise. | 
Selects which alarm Interrupt flag should be cleared.
| Parameters: | alarm – One of the two alarms | 
|---|---|
| Returns: | none | 
Disables one of the two alarms.
| Parameters: | alarm – Alarm object , One of the two alarms, ZERO or ONE. | 
|---|---|
| Returns: | none | 
Disables the clock oscillator.The RTCC does not operate once the oscillator is stopped.
| Parameters: | none – | 
|---|---|
| Returns: | none | 
Enables the chosen alarm.
| Parameters: | 
 | 
|---|---|
| Returns: | none | 
Enables the clock oscillator. This must be enabled in order for the RTCC to run.
| Parameters: | none – | 
|---|---|
| Returns: | none | 
Gets the status of the alarm interrupt flag.
| Parameters: | alarm – One of the two alarms, ZERO or ONE. | 
|---|---|
| Returns: | status - TRUE if alarm enabled , FALSE if disabled. | 
Get the alarm time for one of the two alarms.
| Parameters: | 
 | 
|---|---|
| Returns: | alarm time | 
This function returns the power-down time of the system.
| Parameters: | none – | 
|---|---|
| Returns: | powerdown_time - Power down time structure. | 
Returns the time the system powered up.
| Parameters: | none – | 
|---|---|
| Returns: | powerup_time - Power up time structure. | 
Returns a time object with the current time from the RTCC.
| Parameters: | none – | 
|---|---|
| Returns: | current_time - This is an RTCC class object that contains the time. | 
Checks if the on-chip clock is running.
| Returns: | ClockStatus - TRUE if clock is running , FALSE otherwise. | 
|---|
Check if the VBAT is enabled.
| Parameters: | none – | 
|---|---|
| Returns: | status - True is battery mode is enabled , False otherwise. | 
Get the alarm time on the reg.
| Parameters: | 
 | 
|---|---|
| Returns: | none | 
Get the alarm time on the reg.
| Parameters: | 
 | 
|---|---|
| Returns: | none | 
Sets the alarm time for one of the two alarms.
| Parameters: | 
 | 
|---|---|
| Returns: | none | 
Sets the hour format according to standard or military format.
| Parameters: | format – Type of format is either 24 or 12. | 
|---|---|
| Returns: | none | 
This function sets the MFP pin mode.
| Parameters: | mode – Mode of the MFP pin. | 
|---|---|
| Returns: | none | 
Sets the MFP output logic level when the pin is configured as GPO
| Parameters: | status – Polarity of MFP pin , Asserted output state of MFP is a logic low level for LOW and opposite for HIGH | 
|---|---|
| Returns: | none | 
Sets the meridian mode.
| Parameters: | meridian – PMAM_t object ,either PMT or AMT settings | 
|---|---|
| Returns: | none | 
Initializes the RTCC with a specific time contained in the time structure.
| Parameters: | RTCtime – RTCC class object that contains the time to be set. | 
|---|---|
| Returns: | none | 
Convert the value from Binary Coded Decimal (BCD) to Decimal.
| Parameters: | num – Number to convert to decimal. | 
|---|---|
| Returns: | dec - Decimal representation of number. | 
Convert the value from BCD to binary.
| Parameters: | num – Number to convert to binary. | 
|---|---|
| Returns: | bin - Binary representation of number. | 
Convert the value from decimal to Binary Coded Decimal (BCD).
| Parameters: | num – Number to convert to BCD | 
|---|---|
| Returns: | bcd - BCD representation of number. | 
Class representation of Alarm match settings for RTCC chip.
Class representation of Mode settings for RTCC chip.
Class representation for PM/AM settings for RTCC chip.