esp_efuse.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2019 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #pragma once
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /**
  19. * @brief Type of eFuse blocks for ESP32
  20. */
  21. typedef enum {
  22. EFUSE_BLK0 = 0, /**< Number of eFuse block. Reserved. */
  23. EFUSE_BLK1 = 1, /**< Number of eFuse block. Used for Flash Encryption. If not using that Flash Encryption feature, they can be used for another purpose. */
  24. EFUSE_BLK2 = 2, /**< Number of eFuse block. Used for Secure Boot. If not using that Secure Boot feature, they can be used for another purpose. */
  25. EFUSE_BLK3 = 3, /**< Number of eFuse block. Uses for the purpose of the user. */
  26. EFUSE_BLK_MAX
  27. } esp_efuse_block_t;
  28. /**
  29. * @brief Type of coding scheme
  30. */
  31. typedef enum {
  32. EFUSE_CODING_SCHEME_NONE = 0, /**< None */
  33. EFUSE_CODING_SCHEME_3_4 = 1, /**< 3/4 coding */
  34. EFUSE_CODING_SCHEME_REPEAT = 2, /**< Repeat coding */
  35. } esp_efuse_coding_scheme_t;
  36. #ifdef __cplusplus
  37. }
  38. #endif