Crate ft5336

Source
Expand description

A platform agnostic driver to interface with the FT5336 touch controller

This driver was build using [‘embedded-hal’] traits.

Structs§

Ft5336
FT5883 driver
Ft5336Capabilities
A simple collection of the capabilities of the chip later realised in a const.
GestureInit
Structure that holds the values for a gesture The name is what’s in the c code. The register definitions are: pub const FT5336_RADIAN_VALUE_REG: u8 = 0x91; pub const FT5336_OFFSET_LR_REG: u8 = 0x92; pub const FT5336_OFFSET_UD_REG: u8 = 0x93; pub const FT5336_DISTANCE_LR_REG: u8 = 0x94; pub const FT5336_DISTANCE_UD_REG: u8 = 0x95; pub const FT5336_DISTANCE_ZOOM_REG: u8 = 0x96;
TouchState
Touch structure - derived from the available I2C registers There are ten available touch registers on the chip, but also a defined maximum of 5 in FT5336_MAX_NB_TOUCH above. The touch registers occur in banks of 6, for each of the ten potential touches, defined as follows, and the registers are contiguous. That means that a single read can get all of the data for one touch, or all of the data for all the touches. In the absence of documentation on the MISC register, it is being ignored.

Enums§

GestureKind
When a gesture is polled it could be one of these: