Skip to main content

Module device

Module device 

Source
Expand description

HID device abstraction.

Wraps hidapi to find the mini-HSM dongle by VID/PID and exchange single 128-byte HID reports. The protocol is request/response. The host sends one report and reads exactly one back.

Functionsยง

describe_atecc_kind ๐Ÿ”’
Symbolic name for a non-chip driver error decoded from ResponseStatus::AteccCommunicationError payload.
describe_chip_error ๐Ÿ”’
Symbolic name for a chip-side error decoded from ResponseStatus::AteccChipError payload.
describe_status ๐Ÿ”’
enumerate ๐Ÿ”’
Print one line per HID device on the bus, marking matches.
open ๐Ÿ”’
Open the first HID device matching the mini-HSM VID/PID.
send_command ๐Ÿ”’
Send a command and return the response payload (without the 3-byte frame header).