VSF Documented
Data Structures | Macros | Typedefs | Functions
rtc.c File Reference
#include "../driver.h"
#include "service/vsf_service.h"
#include <Windows.h>
#include "hal/driver/common/rtc/rtc_template.inc"

Data Structures

struct  vsf_hw_rtc_t
 

Macros

#define VSF_HW_RTC_CFG_MULTI_CLASS   VSF_RTC_CFG_MULTI_CLASS
 
#define VSF_RTC_CFG_IMP_PREFIX   vsf_hw
 
#define VSF_RTC_CFG_IMP_UPCASE_PREFIX   VSF_HW
 
#define VSF_RTC_CFG_GET_TIME_API_TEMPLATE   ENABLED
 
#define VSF_RTC_CFG_SET_TIME_API_TEMPLATE   ENABLED
 
#define VSF_RTC_CFG_CAPABILITY_IRQ_MASK   0
 
#define VSF_RTC_CFG_IMP_LV0(__IDX, __HAL_OP)
 

Typedefs

typedef struct vsf_hw_rtc_t vsf_hw_rtc_t
 

Functions

vsf_err_t vsf_hw_rtc_init (vsf_hw_rtc_t *hw_rtc_ptr, vsf_rtc_cfg_t *cfg_ptr)
 
void vsf_hw_rtc_fini (vsf_hw_rtc_t *hw_rtc_ptr)
 
fsm_rt_t vsf_hw_rtc_enable (vsf_hw_rtc_t *hw_rtc_ptr)
 
fsm_rt_t vsf_hw_rtc_disable (vsf_hw_rtc_t *hw_rtc_ptr)
 
vsf_err_t vsf_hw_rtc_get (vsf_hw_rtc_t *hw_rtc_ptr, vsf_rtc_tm_t *rtc_tm)
 
vsf_err_t vsf_hw_rtc_set (vsf_hw_rtc_t *hw_rtc_ptr, const vsf_rtc_tm_t *rtc_tm)
 

Macro Definition Documentation

◆ VSF_HW_RTC_CFG_MULTI_CLASS

#define VSF_HW_RTC_CFG_MULTI_CLASS   VSF_RTC_CFG_MULTI_CLASS

◆ VSF_RTC_CFG_IMP_PREFIX

#define VSF_RTC_CFG_IMP_PREFIX   vsf_hw

◆ VSF_RTC_CFG_IMP_UPCASE_PREFIX

#define VSF_RTC_CFG_IMP_UPCASE_PREFIX   VSF_HW

◆ VSF_RTC_CFG_GET_TIME_API_TEMPLATE

#define VSF_RTC_CFG_GET_TIME_API_TEMPLATE   ENABLED

◆ VSF_RTC_CFG_SET_TIME_API_TEMPLATE

#define VSF_RTC_CFG_SET_TIME_API_TEMPLATE   ENABLED

◆ VSF_RTC_CFG_CAPABILITY_IRQ_MASK

#define VSF_RTC_CFG_CAPABILITY_IRQ_MASK   0

◆ VSF_RTC_CFG_IMP_LV0

#define VSF_RTC_CFG_IMP_LV0 (   __IDX,
  __HAL_OP 
)
Value:
vsf_hw_rtc_t vsf_hw_rtc ## __IDX = { \
__HAL_OP \
};
Definition rtc.c:35

Typedef Documentation

◆ vsf_hw_rtc_t

typedef struct vsf_hw_rtc_t vsf_hw_rtc_t

Function Documentation

◆ vsf_hw_rtc_init()

vsf_err_t vsf_hw_rtc_init ( vsf_hw_rtc_t hw_rtc_ptr,
vsf_rtc_cfg_t cfg_ptr 
)

◆ vsf_hw_rtc_fini()

void vsf_hw_rtc_fini ( vsf_hw_rtc_t hw_rtc_ptr)

◆ vsf_hw_rtc_enable()

fsm_rt_t vsf_hw_rtc_enable ( vsf_hw_rtc_t hw_rtc_ptr)

◆ vsf_hw_rtc_disable()

fsm_rt_t vsf_hw_rtc_disable ( vsf_hw_rtc_t hw_rtc_ptr)

◆ vsf_hw_rtc_get()

vsf_err_t vsf_hw_rtc_get ( vsf_hw_rtc_t hw_rtc_ptr,
vsf_rtc_tm_t rtc_tm 
)

◆ vsf_hw_rtc_set()

vsf_err_t vsf_hw_rtc_set ( vsf_hw_rtc_t hw_rtc_ptr,
const vsf_rtc_tm_t rtc_tm 
)