pub(crate) fn send_command(
device: &HidDevice,
opcode: u8,
payload: &[u8],
) -> Result<Vec<u8>>Expand description
Send a command and return the response payload (without the 3-byte frame header).
Returns Err if the chip responded with a non-Ok status. The error
message includes the status code and any payload bytes the firmware
included alongside (e.g. tries_remaining on WrongPin).