Documentation ¶
Overview ¶
Package bitbox02common contains common functionality to bitbox02 and bitbox02bootloader.
Index ¶
Constants ¶
View Source
const ( // FirmwareHIDProductStringStandard is the hid product string of the standard edition firmware. FirmwareHIDProductStringStandard = "BitBox02" // FirmwareHIDProductStringBTCOnly is the hid product string of the btc-only edition firmware. FirmwareHIDProductStringBTCOnly = "BitBox02BTC" // BootloaderHIDProductStringStandard is the hid product string of the standard edition bootloader. BootloaderHIDProductStringStandard = "bb02-bootloader" // BootloaderHIDProductStringBTCOnly is the hid product string of the btc-only edition bootloader. BootloaderHIDProductStringBTCOnly = "bb02btc-bootloader" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edition ¶
type Edition string
Edition enumerates the device editions, which (together with the firmware version) determines the device API.
func EditionFromHIDProductString ¶
EditionFromHIDProductString returns the firmware or bootloader edition based on the usb HID product string. Returns an error for an invalid/unrecognized product string.
Click to show internal directories.
Click to hide internal directories.