![]() |
BSB Developer Docs
|
Version HAL API. More...
#include <stdbool.h>#include <stdint.h>#include <version/version.h>#include <furi.h>#include <furi_hal_flash_otp.h>Go to the source code of this file.
Macros | |
| #define | FURI_HAL_VERSION_NAME_LENGTH (8) |
| #define | FURI_HAL_VERSION_ARRAY_NAME_LENGTH (FURI_HAL_VERSION_NAME_LENGTH + 1) |
| #define | FURI_HAL_VERSION_MAC_LENGTH (6) |
Enumerations | |
| enum | FuriHalVersionColor { FuriHalVersionColorUnknown = 0x00 , FuriHalVersionColorWhite = 0x01 } |
| Device Colors (from OTP2 hw_color, matches HWColor in bsbotp.py) | |
| enum | FuriHalVersionKeyCurve { FuriHalVersionKeyCurveNone = 0x00 , FuriHalVersionKeyCurveSecp224r1 = 0x01 } |
Functions | |
| void | furi_hal_version_init (void) |
| Init flipper version. | |
| bool | furi_hal_version_check_target_match (void) |
| Check target firmware version. | |
| const char * | furi_hal_version_get_model_name (void) |
| Get model name. | |
| const char * | furi_hal_version_get_model_code (void) |
| Get model name. | |
| const char * | furi_hal_version_get_fcc_id (void) |
| Get FCC ID. | |
| const char * | furi_hal_version_get_ic_id (void) |
| Get IC id. | |
| const char * | furi_hal_version_get_mic_id (void) |
| Get MIC id. | |
| const char * | furi_hal_version_get_srrc_id (void) |
| Get SRRC id. | |
| const char * | furi_hal_version_get_ncc_id (void) |
| Get NCC id. | |
| uint8_t | furi_hal_version_get_hw_version (void) |
| Get hardware version. | |
| uint8_t | furi_hal_version_get_hw_target (void) |
| Get hardware target (with fallback to firmware version if OTP not provisioned) | |
| uint8_t | furi_hal_version_get_hw_target_otp (void) |
| Get hardware target from OTP (raw value, 0 if not provisioned) | |
| uint8_t | furi_hal_version_get_hw_body (void) |
| Get hardware body. | |
| FuriHalVersionColor | furi_hal_version_get_hw_color (void) |
| Get hardware body color. | |
| uint8_t | furi_hal_version_get_hw_connect (void) |
| Get hardware connect. | |
| const char * | furi_hal_version_get_hw_version_code (void) |
| Get full hardware version code. | |
| uint8_t | furi_hal_version_get_hw_region (void) |
| Get hardware region (raw value from OTP2) | |
| uint32_t | furi_hal_version_get_hw_timestamp (void) |
| Get hardware timestamp. | |
| uint32_t | furi_hal_version_get_hw_timestamp_qc (void) |
| Get QC timestamp from OTP2. | |
| const char * | furi_hal_version_get_name_ptr (void) |
| Get pointer to target name. | |
| const uint8_t * | furi_hal_version_get_usb_mac (void) |
| Get USB MAC address. | |
| size_t | furi_hal_version_uid_size (void) |
| Get platform UID size in bytes. | |
| const uint8_t * | furi_hal_version_uid (void) |
| Get const pointer to UID. | |
| bool | furi_hal_version_is_otp_valid (FuriHalFlashOtpBlock block) |
| Check if an OTP block is valid (has magic and is programmed) | |
| FuriHalVersionKeyCurve | furi_hal_version_get_sign_curve (void) |
| Get EC curve identifier from OTP3. | |
| const uint8_t * | furi_hal_version_get_sign_pubkey (void) |
| Get public key from OTP3. | |
| size_t | furi_hal_version_get_sign_pubkey_size (void) |
| Get public key size. | |
| const uint8_t * | furi_hal_version_get_otp_mcu_uid (void) |
| Get stored MCU UID from OTP4 (for binding verification) | |
| const uint8_t * | furi_hal_version_get_otp1_signature (void) |
| Get OTP1 signature from OTP4. | |
| const uint8_t * | furi_hal_version_get_otp2_signature (void) |
| Get OTP2 signature from OTP4. | |
| size_t | furi_hal_version_get_signature_size (void) |
| Get signature size. | |
Version HAL API.
| bool furi_hal_version_check_target_match | ( | void | ) |
Check target firmware version.
| const char * furi_hal_version_get_fcc_id | ( | void | ) |
Get FCC ID.
| uint8_t furi_hal_version_get_hw_body | ( | void | ) |
Get hardware body.
| FuriHalVersionColor furi_hal_version_get_hw_color | ( | void | ) |
Get hardware body color.
| uint8_t furi_hal_version_get_hw_connect | ( | void | ) |
Get hardware connect.
| uint8_t furi_hal_version_get_hw_region | ( | void | ) |
Get hardware region (raw value from OTP2)
| uint8_t furi_hal_version_get_hw_target | ( | void | ) |
Get hardware target (with fallback to firmware version if OTP not provisioned)
| uint8_t furi_hal_version_get_hw_target_otp | ( | void | ) |
Get hardware target from OTP (raw value, 0 if not provisioned)
| uint32_t furi_hal_version_get_hw_timestamp | ( | void | ) |
Get hardware timestamp.
| uint32_t furi_hal_version_get_hw_timestamp_qc | ( | void | ) |
Get QC timestamp from OTP2.
| uint8_t furi_hal_version_get_hw_version | ( | void | ) |
Get hardware version.
| const char * furi_hal_version_get_hw_version_code | ( | void | ) |
Get full hardware version code.
"4.F22.B7.C2"). Value is "Unknown" if OTP1 not provisioned. | const char * furi_hal_version_get_ic_id | ( | void | ) |
Get IC id.
| const char * furi_hal_version_get_mic_id | ( | void | ) |
Get MIC id.
| const char * furi_hal_version_get_model_code | ( | void | ) |
Get model name.
| const char * furi_hal_version_get_model_name | ( | void | ) |
Get model name.
| const char * furi_hal_version_get_name_ptr | ( | void | ) |
Get pointer to target name.
| const char * furi_hal_version_get_ncc_id | ( | void | ) |
Get NCC id.
| const uint8_t * furi_hal_version_get_otp1_signature | ( | void | ) |
Get OTP1 signature from OTP4.
| const uint8_t * furi_hal_version_get_otp2_signature | ( | void | ) |
Get OTP2 signature from OTP4.
| const uint8_t * furi_hal_version_get_otp_mcu_uid | ( | void | ) |
Get stored MCU UID from OTP4 (for binding verification)
| FuriHalVersionKeyCurve furi_hal_version_get_sign_curve | ( | void | ) |
Get EC curve identifier from OTP3.
| const uint8_t * furi_hal_version_get_sign_pubkey | ( | void | ) |
Get public key from OTP3.
| size_t furi_hal_version_get_sign_pubkey_size | ( | void | ) |
Get public key size.
| size_t furi_hal_version_get_signature_size | ( | void | ) |
Get signature size.
| const char * furi_hal_version_get_srrc_id | ( | void | ) |
Get SRRC id.
| const uint8_t * furi_hal_version_get_usb_mac | ( | void | ) |
Get USB MAC address.
FURI_HAL_VERSION_MAC_LENGTH) | bool furi_hal_version_is_otp_valid | ( | FuriHalFlashOtpBlock | block | ) |
Check if an OTP block is valid (has magic and is programmed)
| block | OTP block identifier |
| const uint8_t * furi_hal_version_uid | ( | void | ) |
Get const pointer to UID.
| size_t furi_hal_version_uid_size | ( | void | ) |
Get platform UID size in bytes.