Jeff.Command.LedSettings (jeff v0.3.0) View Source
Reader LED control command
OSDP v2.2 Specification Reference: 6.10
Temporary Control Code Values
| Code | Description |------|----------------------------------------------------------------------------------------------------------------------| | 0x00 | NOP – do not alter this LED's temporary settings. The remaining values of the temporary settings record are ignored. | | 0x01 | Cancel any temporary operation and display this LED's permanent state immediately. | | 0x02 | Set the temporary state as given and start timer immediately. |
Permanent Control Code Values
| Code | Description |-----------------------------------------------------------------------------------------------------------------------------| | 0x00 | NOP – do not alter this LED's permanent settings. The remaining values of the temporary settings record are ignored. | | 0x01 | Set the permanent state as given. |
Color Values
| Value | Description | |---------------------------| | 0 | Black (off/unlit) | | 1 | Red | | 2 | Green | | 3 | Amber | | 4 | Blue | | 5 | Magenta | | 6 | Cyan | | 7 | White |
Link to this section Summary
Link to this section Types
Specs
param() ::
{:reader, integer()}
| {:led, integer()}
| {:temp_mode, 0 | 1 | 2}
| {:temp_on_time, integer()}
| {:temp_off_time, integer()}
| {:temp_on_color, 0..7}
| {:temp_off_color, 0..7}
| {:temp_timer, integer()}
| {:perm_mode, 0 | 1}
| {:perm_on_time, integer()}
| {:perm_off_time, integer()}
| {:perm_on_color, 0..7}
| {:perm_off_color, 0..7}
Specs
Specs
t() :: %Jeff.Command.LedSettings{
led: integer(),
perm_mode: 0 | 1,
perm_off_color: 0..7,
perm_off_time: integer(),
perm_on_color: 0..7,
perm_on_time: integer(),
reader: integer(),
temp_mode: 0 | 1 | 2,
temp_off_color: 0..7,
temp_off_time: integer(),
temp_on_color: 0..7,
temp_on_time: integer(),
temp_timer: integer()
}