uFCoder 2.58
Loading...
Searching...
No Matches
RGB Signalization

Functions

UFR_STATUS DL_API UfrRgbLightControlM (UFR_HANDLE hndUFR, uint8_t red, uint8_t green, uint8_t blue, uint8_t intensity, uint8_t enable)
 
UFR_STATUS DL_API RgbControlM (UFR_HANDLE hndUFR, uint8_t red, uint8_t green, uint8_t blue)
 
UFR_STATUS DL_API UfrRgbLightControlSleepM (UFR_HANDLE hndUFR, uint8_t red, uint8_t green, uint8_t blue, uint8_t intensity, uint8_t period, uint16_t duration, uint8_t enable)
 
UFR_STATUS DL_API UfrRgbLightControlRfPeriodM (UFR_HANDLE hndUFR, uint8_t red, uint8_t green, uint8_t blue, uint8_t intensity, uint16_t period, uint16_t duration, uint8_t rgb_omitted_cnt, uint8_t enable)
 
UFR_STATUS DL_API SetRgbDataM (UFR_HANDLE hndUFR, uint8_t *display_data, uint8_t data_length, uint8_t port_name)
 

Detailed Description

Function Documentation

◆ UfrRgbLightControlM()

UFR_STATUS DL_API UfrRgbLightControlM ( UFR_HANDLE hndUFR,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t intensity,
uint8_t enable )

Multi reader support. For classic uFR PLUS devices only. The function prohibits the blinking of the green diode (if this option is set), and sets color on RGB diodes. This color stays on diodes until this function sets the parameter "enable" to 0.

Parameters
hndUFRhandle of the uFR device
redvalue of red color (0 - 255)
greenvalue of green color (0 - 255)
bluevalue of blue color (0 - 255)
intensityvalue of color intensity in percent (0 - 100)
enable1 - enable 0 - disable
Returns
Operation status

◆ RgbControlM()

UFR_STATUS DL_API RgbControlM ( UFR_HANDLE hndUFR,
uint8_t red,
uint8_t green,
uint8_t blue )

Multi reader support. From version 5.0.55. Before the function calls, the function GreenLedBlinkingTurnOff must be called, or the reader is already in mode of blocking automatic signalization. Function sets the color of the RGB diodes. This color stays on the RGB until the function GreenLedBlinkingTurnOn is called. Intensity of light is defined by a parameter stored using the function SetRgbIntensity.

Parameters
hndUFRhandle of the uFR device
redvalue of red color (0 - 255)
greenvalue of green color (0 - 255)
bluevalue of blue color (0 - 255)
Returns
Operation status

◆ UfrRgbLightControlSleepM()

UFR_STATUS DL_API UfrRgbLightControlSleepM ( UFR_HANDLE hndUFR,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t intensity,
uint8_t period,
uint16_t duration,
uint8_t enable )

Multi reader support. From version 5.0.64. The function sets color on the RGB diodes. This setting will appear when the reader is in sleep mode. Function adjusts the period, and duration of impulse of light. The period is a product of approximately two seconds (2s, 4s, 6s, 8s,...). Maximal duration of impulse of light is 2000 ms.

Parameters
hndUFRhandle of the uFR device
redvalue of red color (0 - 255)
greenvalue of green color (0 - 255)
bluevalue of blue color (0 - 255)
intensityvalue of color intensity in percent (0 - 100)
periodnumber of the 2 seconds period. (1 = 2s, 2 = 4s, 3 = 6s, …)
durationduration of impulse of light in ms.
enable1 - enable 0 - disable
Returns
Operation status

◆ UfrRgbLightControlRfPeriodM()

UFR_STATUS DL_API UfrRgbLightControlRfPeriodM ( UFR_HANDLE hndUFR,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t intensity,
uint16_t period,
uint16_t duration,
uint8_t rgb_omitted_cnt,
uint8_t enable )

Multi reader support. From version 5.0.66. The function sets color on the RGB diodes, period of inactivity NFC RF and RGB, and duration of activity NFC RF and RGB. In the inactivity period NFC RF is off, and RGB light is off. In the activity period NFC RF is on, and RGB may be on. Function also sets the number of omitted activity periods, when the RGB light is off. For example if the inactivity period is 400ms, activity duration is 50ms, and number of omitted activity periods is 5, RGB lights will be on 50ms at every 2250ms.

Parameters
hndUFRhandle of the uFR device
redvalue of red color (0 - 255)
greenvalue of green color (0 - 255)
bluevalue of blue color (0 - 255)
intensityvalue of color intensity in percent (0 - 100)
periodinactivity period in ms
durationduration of activity period in ms
rgb_omitted_cntnumber of omitted activity periods
enable1 - enable 0 - disable
Returns
Operation status

◆ SetRgbDataM()

UFR_STATUS DL_API SetRgbDataM ( UFR_HANDLE hndUFR,
uint8_t * display_data,
uint8_t data_length,
uint8_t port_name )

Multi reader support. From version 5.0.55 Function has the same functionality as the function SetDisplayData. New feature is the RGB port selection. Internal port uses RGB diodes on the reader PCB. Card size reader has two diodes. XL reader has four diodes. External port uses LED RING with RGB diodes. Before the function calls, the function GreenLedBlinkingTurnOff must be called, or the reader is already in mode of blocking automatic signalization. Function sets the color of the RGB diodes. This color stays on the RGB until the function GreenLedBlinkingTurnOn is called. Intensity of light is defined by a parameter stored using the function SetRgbIntensity.

Parameters
hndUFRhandle of the uFR device
display_datapointer to data array
data_lengthnumber of data into array
port_nameEXTERNAL_RGB_PORT INTERNAL_RGB_PORT
Returns
Operation status