Crate bnr

source ·
Expand description

Device communication library for MEI/CPI BNR devices.

This library is for communicating with BNR cash devices using the BNR/XFS communication protocol over a USB connection.

Users can either use the stand-alone functions exposed by the module APIs, or create a local instance of a DeviceHandle.

Creating a local instance of a DeviceHandle allows the user to interact using the method calls directly.

The module APIs more closely mirror the C library provided by MEI/CPI, and utilize a global instance of a DeviceHandle. These APIs are more useful for backwards compatibility with applications already using the MEI/CPI libraries.

Re-exports§

Modules§

  • Work-around for const-generic arrays in serde from MikailBag:
  • Functions for cash-related operations.
  • Functions for denomination operations.
  • Types and functionality for performing maintenance on BNR devices.
  • Types and functions for handling system status events.
  • System configuration types and functionality.
  • XFS message types for BNR communication.

Macros§

Structs§

Enums§

Constants§

Traits§

  • Trait for arguments to state change callbacks used by the XFS API.

Functions§

Type Aliases§

  • Function signature for the Intermediate Occurred callback used by the XFS API.
  • Function signature for the Operation Completed callback used by the XFS API.
  • Convenience alias for a Result type for the crate.
  • Function signature for the Status Occured callback used by the XFS API.