5#include <core/common_defines.h>
12#define FURI_HAL_FLASH_OTP_BLOCK_SIZE (128)
14#define FURI_HAL_FLASH_OTP_MAGIC (0x3713)
18 FuriHalOtpBlockOtp1 = 1,
19 FuriHalOtpBlockOtp2 = 2,
20 FuriHalOtpBlockOtp3 = 3,
21 FuriHalOtpBlockOtp4 = 4,
22} FuriHalFlashOtpBlock;
30_Static_assert(
sizeof(FuriHalFlashOtpHeader) == 4,
"OTP header size mismatch");
38static inline bool furi_hal_flash_otp_header_is_valid(
39 const FuriHalFlashOtpHeader* header,
40 FuriHalFlashOtpBlock expected_block) {
41 return (header->magic == FURI_HAL_FLASH_OTP_MAGIC) &&
42 (header->index == (uint8_t)expected_block);
50uint32_t furi_hal_flash_otp_get_block_address(FuriHalFlashOtpBlock block);
59bool furi_hal_flash_otp_program(FuriHalFlashOtpBlock block,
const uint8_t* data, uint16_t length);
Frame header with fields which help control frame exchange.
Definition ble_intercom_types.h:40