Microchip® Advanced Software Framework

fattime_rtc.c File Reference

Implementation of low level disk I/O module skeleton for FatFS.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "rtc_calendar.h"

Functions

uint32_t get_fattime (void)
 Current time returned is packed into a DWORD value. More...
 

Variables

struct rtc_module rtc_instance
 [rtc_module_instance] More...
 

uint32_t get_fattime ( void  )

Current time returned is packed into a DWORD value.

The bit field is as follows:

bit31:25 Year from 1980 (0..127)

bit24:21 Month (1..12)

bit20:16 Day in month(1..31)

bit15:11 Hour (0..23)

bit10:5 Minute (0..59)

bit4:0 Second (0..29)

Returns
Current time.

References rtc_calendar_time::day, rtc_calendar_time::hour, rtc_calendar_time::minute, rtc_calendar_time::month, rtc_calendar_get_time(), rtc_instance, rtc_calendar_time::second, and rtc_calendar_time::year.

Referenced by f_mkdir(), f_open(), and f_sync().

struct rtc_module rtc_instance