Crate ajazz_sdk

Source
Expand description

Ajazz library

Library for interacting with Ajazz devices through hidapi.

Re-exports§

pub use asynchronous::AsyncAjazz;async

Modules§

asynchronousasync
Async Ajazz Code from this module is using block_in_place, and so they cannot be used in current_thread runtimes

Structs§

Ajazz
Interface for an Ajazz device
DeviceStateReader
Button reader that keeps state of the Ajazz and returns events instead of full states
ImageFormat
Image format used by the device
ImageRect
Rect to be used when trying to send image to lcd screen

Enums§

AjazzError
Errors that can occur while working with Ajazz devices
AjazzInput
Type of input that the device produced
Event
Tells what changed in button states
ImageMirroring
Image mirroring
ImageMode
Image format
ImageRotation
Image rotation
Kind
Enum describing kinds of Ajazz devices

Functions§

convert_image
Converts image into image data depending on provided kind of device
convert_image_asyncasync
Converts image into image data depending on provided kind of device, can be safely ran inside multi_thread runtime
convert_image_with_format
Converts image into image data depending on provided image format
convert_image_with_format_asyncasync
Converts image into image data depending on provided image format, can be safely ran inside multi_thread runtime
list_devices
Returns a list of devices as (Kind, Serial Number) that could be found using HidApi.
new_hidapi
Creates an instance of the HidApi
refresh_device_list
Actually refreshes the device list