View Source Jeff (jeff v0.4.0)

Control an Access Control Unit (ACU) and send commands to a Peripheral Device (PD)

Link to this section Summary

Functions

Register a peripheral device on the ACU communication bus.

Requests the PD to return a list of its functional capabilities, such as the type and number of input points, outputs points, reader ports, etc.

Requests the return of the PD ID Report.

Instructs the PD to reply with a local status report.

Remove a peripheral device from the ACU communication bus.

Defines commands to a single, monotone audible annunciator (beeper or buzzer) that may be associated with a reader.

Sets the PD's communication parameters.

Controls the LEDs associated with one or more readers.

Start an ACU process.

Link to this section Types

@type acu() :: GenServer.server()
@type device_opt() :: Jeff.ACU.device_opt()
@type osdp_address() :: 0..127

Link to this section Functions

Link to this function

add_pd(acu, address, opts \\ [])

View Source
@spec add_pd(acu(), osdp_address(), [device_opt()]) :: Jeff.Device.t()

Register a peripheral device on the ACU communication bus.

Link to this function

capabilities(acu, address)

View Source

Requests the PD to return a list of its functional capabilities, such as the type and number of input points, outputs points, reader ports, etc.

Requests the return of the PD ID Report.

Link to this function

local_status(acu, address)

View Source

Instructs the PD to reply with a local status report.

@spec remove_pd(acu(), osdp_address()) :: Jeff.Device.t()

Remove a peripheral device from the ACU communication bus.

Link to this function

set_buzzer(acu, address, params)

View Source
@spec set_buzzer(acu(), osdp_address(), [Jeff.Command.BuzzerSettings.param()]) ::
  Jeff.Reply.ACK | Jeff.Reply.ErrorCode.t()

Defines commands to a single, monotone audible annunciator (beeper or buzzer) that may be associated with a reader.

Link to this function

set_com(acu, address, params)

View Source

Sets the PD's communication parameters.

Link to this function

set_led(acu, address, params)

View Source
@spec set_led(acu(), osdp_address(), [Jeff.Command.LedSettings.param()]) ::
  Jeff.Reply.ACK | Jeff.Reply.ErrorCode.t()

Controls the LEDs associated with one or more readers.

@spec start_acu([Jeff.ACU.start_opt()]) :: GenServer.on_start()

Start an ACU process.