Crate libosdp_sys

Source
Expand description

Auto generated (bindgen) wrapper for LibOSDP C API exposed from osdp.h here.

Structs§

  • @brief User defined communication channel abstraction for OSDP devices. The methods for read/write/flush are expected to be non-blocking.
  • @brief OSDP Command Structure. This is a wrapper for all individual OSDP commands.
  • @brief Sent from CP to control the behaviour of a buzzer in the PD.
  • @brief Sent in response to a COMSET command. Set communication parameters to PD. Must be stored in PD non-volatile memory.
  • @brief File transfer start command
  • @brief This command transfers an encryption key from the CP to a PD.
  • @brief Sent from CP to PD to control the behaviour of it’s on-board LEDs
  • @brief LED params sub-structure. Part of LED command. See @ref osdp_cmd_led.
  • @brief Manufacturer Specific Commands
  • @brief Command sent from CP to Control digital output of PD.
  • @brief Command to manipulate any display units that the PD supports.
  • @brief OSDP Event structure.
  • @brief OSDP event cardread
  • @brief OSDP Event Keypad
  • @brief OSDP Event Manufacturer Specific Command
  • @brief LibOSDP event notification
  • @brief OSDP File operations struct that needs to be filled by the CP/PD application and registered with LibOSDP using osdp_file_register_ops() before a file transfer command can be initiated.
  • @brief PD capability structure. Each PD capability has a 3 byte representation.
  • @brief PD ID information advertised by the PD.
  • @brief OSDP PD Information. This struct is used to describe a PD to LibOSDP.
  • @brief Status report structure. Used by OSDP_CMD_STATUS and OSDP_EVENT_STATUS. In case of command, it is used to send a query to the PD while in the case of events, the PD responds back with this structure.

Constants§

Functions§

  • @brief Deletes all commands queued for a give PD
  • @brief Get capability associated to a function_code that the PD reports in response to osdp_CAP(0x62) command. Calling this method before the CP has had a the chance to get this information will return invalid/stale results.
  • @brief Get PD ID information as reported by the PD. Calling this method before the CP has had a the chance to get this information will return invalid/stale results.
  • @brief Set or clear OSDP public flags
  • @brief Periodic refresh method. Must be called by the application at least once every 50ms to meet OSDP timing requirements.
  • @brief Generic command enqueue API.
  • @brief Set callback method for CP event notification. This callback is invoked when the CP receives an event from the PD.
  • @brief This method is used to setup a device in CP mode. Application must store the returned context pointer and pass it back to all OSDP functions intact.
  • @brief Cleanup all osdp resources. The context pointer is no longer valid after this call.
  • @brief Register a global file operations struct with OSDP. Both CP and PD modes should have done so already before CP can sending a OSDP_CMD_FILE_TX.
  • @brief Query file transfer status if one is in progress. Calling this method when there is no file transfer progressing will return error.
  • @brief Get a bit mask of number of PD that are online and have an active secure channel currently.
  • @brief Get LibOSDP source identifier as a const char *. This string has info about the source tree from which this version of LibOSDP was built. Used in diagnostics.
  • @brief Get a bit mask of number of PD that are online currently.
  • @brief Get LibOSDP version as a const char *. Used in diagnostics.
  • @brief Configure OSDP Logging.
  • @brief Deletes all events from the PD’s event queue.
  • @brief API to notify PD events to CP. These events are sent to the CP as an alternate response to a POLL command.
  • @brief Periodic refresh method. Must be called by the application at least once every 50ms to meet OSDP timing requirements.
  • @brief Set PD’s capabilities
  • @brief Set callback method for PD command notification. This callback is invoked when the PD receives a command from the CP.
  • @brief This method is used to setup a device in PD mode. Application must store the returned context pointer and pass it back to all OSDP functions intact.
  • @brief Cleanup all osdp resources. The context pointer is no longer valid after this call.
  • @brief A callback function that gets called when LibOSDP wants to emit a log line. All messages (of all log levels) are passed on to this callback without any log formatting. This API is for users who may already have a logger configured in their application.

Type Aliases§

Unions§