FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/include/pmsis/implem/drivers/rtc/rtc_internal.h File Reference

Data Structures

struct  rtc_data_s
 

Macros

#define PI_RTC_EVENT_ALARM
 
#define PI_RTC_EVENT_TIMER
 
#define PI_RTC_EVENT_CALIB
 

Functions

void __pi_rtc_conf_init (struct pi_rtc_conf *conf)
 
int32_t __pi_rtc_open (struct rtc_data_s **device_data, struct pi_rtc_conf *conf)
 
void __pi_rtc_close (struct rtc_data_s *device_data)
 
int32_t __pi_rtc_datetime_set (struct rtc_data_s *device_data, struct tm *time)
 
int32_t __pi_rtc_datetime_get (struct rtc_data_s *device_data, struct tm *time)
 
int32_t __pi_rtc_alarm_set (struct rtc_data_s *device_data, struct tm *alarm)
 
int32_t __pi_rtc_alarm_get (struct rtc_data_s *device_data, struct tm *alarm)
 
int32_t __pi_rtc_timer_set (struct rtc_data_s *device_data, uint32_t countdown)
 
uint32_t __pi_rtc_timer_get (struct rtc_data_s *device_data)
 
int32_t __pi_rtc_ioctl (struct rtc_data_s *device_data, uint32_t cmd, void *arg)
 

Macro Definition Documentation

#define PI_RTC_EVENT_ALARM
#define PI_RTC_EVENT_CALIB
#define PI_RTC_EVENT_TIMER

Function Documentation

int32_t __pi_rtc_alarm_get ( struct rtc_data_s device_data,
struct tm *  alarm 
)
void __pi_rtc_conf_init ( struct pi_rtc_conf *  conf)

References memset().

Referenced by pi_rtc_conf_init().

int32_t __pi_rtc_datetime_get ( struct rtc_data_s device_data,
struct tm *  time 
)
uint32_t __pi_rtc_timer_get ( struct rtc_data_s device_data)
int32_t __pi_rtc_timer_set ( struct rtc_data_s device_data,
uint32_t  countdown 
)