uFCoder 2.58
Loading...
Searching...
No Matches

Functions

UFR_STATUS DL_API GetReaderTimeM (UFR_HANDLE hndUFR, VAR uint8_t *time)
 
UFR_STATUS DL_API SetReaderTimeM (UFR_HANDLE hndUFR, IN uint8_t *password, VAR uint8_t *time)
 

Detailed Description

Function Documentation

◆ GetReaderTimeM()

UFR_STATUS DL_API GetReaderTimeM ( UFR_HANDLE hndUFR,
VAR uint8_t * time )

Multi reader support. 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
hndUFRhandle of the uFR device
timepointer to the 6 bytes array containing date and time representation
Returns
Operation status

◆ SetReaderTimeM()

UFR_STATUS DL_API SetReaderTimeM ( UFR_HANDLE hndUFR,
IN uint8_t * password,
VAR uint8_t * time )

Multi reader support. 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
hndUFRhandle of the uFR device
passwordpointer to the 8 bytes array containing password time
timepointer to the 6 bytes array containing date and time representation
Returns
Operation status