uFCoder 2.58
|
Functions | |
UFR_STATUS DL_API | UfrXrcLockOn (uint16_t pulse_duration) |
UFR_STATUS DL_API | UfrXrcRelayState (uint8_t state) |
UFR_STATUS DL_API | UfrXrcGetIoState (VAR uint8_t *intercom, VAR uint8_t *door, VAR uint8_t *relay_state) |
UFR_STATUS DL_API | UfrOutControl (uint8_t output_nr, uint8_t invert, uint8_t cycle_nr, uint8_t on_duration, uint8_t off_duration) |
UFR_STATUS DL_API | UfrGetInputState (uint8_t input_nr, VAR uint8_t *input_state) |
UFR_STATUS DL_API UfrXrcLockOn | ( | uint16_t | pulse_duration | ) |
Electric strike switches when the function is called. Pulse duration determined by function.
pulse_duration | pulse_duration is strike switch on period in ms |
UFR_STATUS DL_API UfrXrcRelayState | ( | uint8_t | state | ) |
Function switches relay.
state | if the state is 1, then relay is switch on, and if state is 0, then relay is switch off |
UFR_STATUS DL_API UfrXrcGetIoState | ( | VAR uint8_t * | intercom, |
VAR uint8_t * | door, | ||
VAR uint8_t * | relay_state ) |
Function returns states of 3 IO pins.
intercom | shows that there is voltage at the terminals for intercom connection, or notss |
door | shows that the door's magnetic switch opened or closed |
relay_state | is 1 if relay switch on, and 0 if relay switch off |
UFR_STATUS DL_API UfrOutControl | ( | uint8_t | output_nr, |
uint8_t | invert, | ||
uint8_t | cycle_nr, | ||
uint8_t | on_duration, | ||
uint8_t | off_duration ) |
Function controls the output pin on the reader.
output_nr | ordinal number of hardware specific output pin |
invert | 1 output is inverted, 0 output is normal |
cycle_nr | Number of on-off cycles. If the cycle number is 0, the output state will be infinite, or until this will be changed with the next function call (output state is 1 if the invert is 0, and 0 if invert is 1). |
on_duration | On duration in ms. If the invert is 0 output state is 1, and if invert is 1 output state is 0. |
off_duration | Off duration in ms. If the invert is 0 output state is 0, and if invert is 1 output state is 1. This state of the output pin remains after the completion of the on-off cycle. |
UFR_STATUS DL_API UfrGetInputState | ( | uint8_t | input_nr, |
VAR uint8_t * | input_state ) |
Function gets the state of the input pin on the reader.
input_nr | ordinal number of hardware specific input pin input_state input state 1 or 0. |
input_state | input state 1 or 0. |