Data Structures | Macros | Typedefs | Functions
rtc_c.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <ti/devices/msp432p4xx/inc/msp.h>

Go to the source code of this file.

Data Structures

struct  _RTC_C_Calendar
 

Macros

#define RTC_C_CALIBRATIONFREQ_OFF   (RTC_C_CTL13_CALF_0)
 
#define RTC_C_CALIBRATIONFREQ_512HZ   (RTC_C_CTL13_CALF_1)
 
#define RTC_C_CALIBRATIONFREQ_256HZ   (RTC_C_CTL13_CALF_2)
 
#define RTC_C_CALIBRATIONFREQ_1HZ   (RTC_C_CTL13_CALF_3)
 
#define RTC_C_CALIBRATION_DOWN1PPM   ( !(RTC_C_OCAL_OCALS) )
 
#define RTC_C_CALIBRATION_UP1PPM   (RTC_C_OCAL_OCALS)
 
#define RTC_C_COMPENSATION_DOWN1PPM   ( !(RTC_C_TCMP_TCMPS) )
 
#define RTC_C_COMPENSATION_UP1PPM   (RTC_C_TCMP_TCMPS)
 
#define RTC_C_FORMAT_BINARY   ( !(RTC_C_CTL13_BCD) )
 
#define RTC_C_FORMAT_BCD   (RTC_C_CTL13_BCD)
 
#define RTC_C_ALARMCONDITION_OFF   (0x80)
 
#define RTC_C_CALENDAREVENT_MINUTECHANGE   (RTC_C_CTL13_TEV_0)
 
#define RTC_C_CALENDAREVENT_HOURCHANGE   (RTC_C_CTL13_TEV_1)
 
#define RTC_C_CALENDAREVENT_NOON   (RTC_C_CTL13_TEV_2)
 
#define RTC_C_CALENDAREVENT_MIDNIGHT   (RTC_C_CTL13_TEV_3)
 
#define RTC_C_PRESCALE_0   (0x0)
 
#define RTC_C_PRESCALE_1   (0x1)
 
#define RTC_C_PSEVENTDIVIDER_2   (RTC_C_PS0CTL_RT0IP_0)
 
#define RTC_C_PSEVENTDIVIDER_4   (RTC_C_PS0CTL_RT0IP_1)
 
#define RTC_C_PSEVENTDIVIDER_8   (RTC_C_PS0CTL_RT0IP_2)
 
#define RTC_C_PSEVENTDIVIDER_16   (RTC_C_PS0CTL_RT0IP_3)
 
#define RTC_C_PSEVENTDIVIDER_32   (RTC_C_PS0CTL_RT0IP_4)
 
#define RTC_C_PSEVENTDIVIDER_64   (RTC_C_PS0CTL_RT0IP_5)
 
#define RTC_C_PSEVENTDIVIDER_128   (RTC_C_PS0CTL_RT0IP_6)
 
#define RTC_C_PSEVENTDIVIDER_256   (RTC_C_PS0CTL_RT0IP_7)
 
#define RTC_C_OSCILLATOR_FAULT_INTERRUPT   RTC_C_CTL0_OFIE
 
#define RTC_C_TIME_EVENT_INTERRUPT   RTC_C_CTL0_TEVIE
 
#define RTC_C_CLOCK_ALARM_INTERRUPT   RTC_C_CTL0_AIE
 
#define RTC_C_CLOCK_READ_READY_INTERRUPT   RTC_C_CTL0_RDYIE
 
#define RTC_C_PRESCALE_TIMER0_INTERRUPT   0x02
 
#define RTC_C_PRESCALE_TIMER1_INTERRUPT   0x01
 
#define RTC_C_startClockMultipleInstance(a)   RTC_C_startClock()
 
#define RTC_C_holdClockMultipleInstance(a)   RTC_C_holdClock()
 
#define RTC_C_setCalibrationFrequencyMultipleInstance(a, b)   RTC_C_setCalibrationFrequency(b)
 
#define RTC_C_setCalibrationDataMultipleInstance(a, b, c)   RTC_C_setCalibrationData(b,c)
 
#define RTC_C_setTemperatureCompensationMultipleInstance(a, b, c)   RTC_C_setTemperatureCompensation(b,c)
 
#define RTC_C_initCalendarMultipleInstance(a, b, c)   RTC_C_initCalendar(b,c)
 
#define RTC_C_getCalendarTimeMultipleInstance(a)   RTC_C_getCalendarTime()
 
#define RTC_C_setCalendarAlarmMultipleInstance(a, b, c, d, e)   RTC_C_setCalendarAlarm(b,c,d,e)
 
#define RTC_C_setCalendarEventMultipleInstance(a, b)   RTC_C_setCalendarEvent(b)
 
#define RTC_C_definePrescaleEventMultipleInstance(a, b, c)   RTC_C_definePrescaleEvent(b,c)
 
#define RTC_C_getPrescaleValueMultipleInstance(a, b)   RTC_C_getPrescaleValue(b)
 
#define RTC_C_setPrescaleValueMultipleInstance(a, b, c)   RTC_C_setPrescaleValue(b,c)
 
#define RTC_C_convertBCDToBinaryMultipleInstance(a, b)   RTC_C_convertBCDToBinary(b)
 
#define RTC_C_convertBinaryToBCDMultipleInstance(a, b)   RTC_C_convertBinaryToBCD(b)
 
#define RTC_C_enableInterruptMultipleInstance(a, b)   RTC_C_enableInterrupt(b)
 
#define RTC_C_disableInterruptMultipleInstance(a, b)   RTC_C_disableInterrupt(b)
 
#define RTC_C_getInterruptStatusMultipleInstance(a)   RTC_C_getInterruptStatus()
 
#define RTC_C_getEnabledInterruptStatusMultipleInstance(a)   RTC_C_getEnabledInterruptStatus()
 
#define RTC_C_clearInterruptFlagMultipleInstance(a, b)   RTC_C_clearInterruptFlag(b)
 
#define RTC_C_registerInterruptMultipleInstance(a, b)   RTC_C_registerInterrupt(b)
 
#define RTC_C_unregisterInterruptMultipleInstance(a)   RTC_C_unregisterInterrupt()
 

Typedefs

typedef struct _RTC_C_Calendar RTC_C_Calendar
 

Functions

void RTC_C_startClock (void)
 
void RTC_C_holdClock (void)
 
void RTC_C_setCalibrationFrequency (uint_fast16_t frequencySelect)
 
void RTC_C_setCalibrationData (uint_fast8_t offsetDirection, uint_fast8_t offsetValue)
 
bool RTC_C_setTemperatureCompensation (uint_fast16_t offsetDirection, uint_fast8_t offsetValue)
 
void RTC_C_initCalendar (const RTC_C_Calendar *calendarTime, uint_fast16_t formatSelect)
 
RTC_C_Calendar RTC_C_getCalendarTime (void)
 
void RTC_C_setCalendarAlarm (uint_fast8_t minutesAlarm, uint_fast8_t hoursAlarm, uint_fast8_t dayOfWeekAlarm, uint_fast8_t dayOfmonthAlarm)
 
void RTC_C_setCalendarEvent (uint_fast16_t eventSelect)
 
void RTC_C_definePrescaleEvent (uint_fast8_t prescaleSelect, uint_fast8_t prescaleEventDivider)
 
uint_fast8_t RTC_C_getPrescaleValue (uint_fast8_t prescaleSelect)
 
void RTC_C_setPrescaleValue (uint_fast8_t prescaleSelect, uint_fast8_t prescaleCounterValue)
 
uint16_t RTC_C_convertBCDToBinary (uint16_t valueToConvert)
 
uint16_t RTC_C_convertBinaryToBCD (uint16_t valueToConvert)
 
void RTC_C_enableInterrupt (uint8_t interruptMask)
 
void RTC_C_disableInterrupt (uint8_t interruptMask)
 
uint_fast8_t RTC_C_getInterruptStatus (void)
 
uint_fast8_t RTC_C_getEnabledInterruptStatus (void)
 
void RTC_C_clearInterruptFlag (uint_fast8_t interruptFlagMask)
 
void RTC_C_registerInterrupt (void(*intHandler)(void))
 
void RTC_C_unregisterInterrupt (void)
 

Copyright 2018, Texas Instruments Incorporated