Header file containing functions prototypes of eFuse HAL library. More...
Go to the source code of this file.
Classes | |
struct | _efuse_init |
eFuse init Structure definition More... | |
struct | _efuse_handle |
eFuse handle Structure definition More... | |
struct | _keyram_mask |
eFuse Keyram Structure definition More... | |
struct | _hal_efuse_callback |
HAL_EFUSE Callback function definition. More... | |
Typedefs | |
typedef struct _efuse_init | efuse_init_t |
eFuse init Structure definition More... | |
typedef struct _efuse_handle | efuse_handle_t |
eFuse handle Structure definition More... | |
typedef struct _keyram_mask | keyram_mask_t |
eFuse Keyram Structure definition More... | |
typedef struct _hal_efuse_callback | hal_efuse_callback_t |
HAL_EFUSE Callback function definition. More... | |
Enumerations | |
enum | hal_efuse_state_t { HAL_EFUSE_STATE_RESET = 0x00, HAL_EFUSE_STATE_READY = 0x01, HAL_EFUSE_STATE_BUSY = 0x02, HAL_EFUSE_STATE_ERROR = 0x04 } |
HAL eFuse State Enumerations definition. More... | |
Functions | |
hal_status_t | hal_efuse_init (efuse_handle_t *p_efuse) |
Initialize the eFuse according to the specified parameters in the efuse_init_t and initialize the associated handle. More... | |
hal_status_t | hal_efuse_deinit (efuse_handle_t *p_efuse) |
De-initialize the eFuse peripheral. More... | |
void | hal_efuse_msp_init (efuse_handle_t *p_efuse) |
Initialize the eFuse MSP. More... | |
void | hal_efuse_msp_deinit (efuse_handle_t *p_efuse) |
De-initialize the eFuse MSP. More... | |
hal_status_t | hal_efuse_write (efuse_handle_t *p_efuse, uint32_t word_offset, uint32_t *p_data, uint32_t nword) |
Write the eFuse memory data. More... | |
hal_status_t | hal_efuse_read (efuse_handle_t *p_efuse, uint32_t word_offset, uint32_t *p_data, uint32_t nword) |
Read the eFuse memory data. More... | |
hal_status_t | hal_efuse_write_keyram (efuse_handle_t *p_efuse, keyram_mask_t *p_mask) |
Read the key from eFuse memory and write to keyram. More... | |
hal_status_t | hal_efuse_initial_value_check (efuse_handle_t *p_efuse) |
Check the eFuse memory with 0, if memory are all 0, return HAL_OK, then return HAL_ERROR. More... | |
hal_status_t | hal_efuse_crc_calculate (efuse_handle_t *p_efuse, uint32_t word_offset, uint32_t nword, uint32_t *p_result) |
Calculate CRC of the eFuse memory data. More... | |
hal_status_t | hal_efuse_read_trim (efuse_handle_t *p_efuse, uint32_t word_offset, uint32_t *p_data, uint32_t nword) |
Read trim from eFuse memory data. More... | |
hal_status_t | hal_efuse_set_main_backup (efuse_handle_t *p_efuse) |
Set the main or backup info of the eFuse memory. More... | |
Header file containing functions prototypes of eFuse HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gr55xx_hal_efuse.h.