uFCoder 2.62
Loading...
Searching...
No Matches

Functions

UFR_STATUS DL_API GetReaderTime (VAR uint8_t *time)
 Function returns a 6 bytes array of uint8_t that represents the current date and time into the device's RTC.
 
UFR_STATUS DL_API SetReaderTime (IN uint8_t *password, VAR uint8_t *time)
 Function sets the date and time into the device's RTC.
 

Detailed Description

Function Documentation

◆ GetReaderTime()

UFR_STATUS DL_API GetReaderTime ( VAR uint8_t * time)

Function returns a 6 bytes array of uint8_t that represents the current date and time into the device's RTC.

  • Byte 0 represent year (current year - 2000)
  • Byte 1 represent month (1 - 12)
  • Byte 2 represent day of the month (1 - 31)
  • Byte 3 represent hour (0 - 23)
  • Byte 4 represent minute (0 - 59)
  • Byte 5 represent second (0 - 59)
Parameters
timepointer to the 6 bytes array containing date and time representation
Returns
Operation status

◆ SetReaderTime()

UFR_STATUS DL_API SetReaderTime ( IN uint8_t * password,
VAR uint8_t * time )

Function sets the date and time into the device's RTC.

Function requires the 8 bytes password entry to set date and time. Date and time are represented into a 6 bytes array in the same way as in the GetReaderTime function. Factory password is “11111111” (0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31).

Parameters
passwordpointer to the 8 bytes array containing password time pointer to the 6 bytes array containing date and time representation
timepointer to the 6 bytes array containing date and time representation
Returns
Operation status