PAN1080 Peripheral API
Modules | Functions
Efuse Interface

Efuse Interface. More...

Collaboration diagram for Efuse Interface:

Modules

 Efuse operate command
 Efuse operate command definitions.
 
 Efuse status
 Efuse status definitions.
 

Functions

__STATIC_INLINE void EFUSE_Init (EFUSE_T *efuse)
 Init eFuse module. More...
 
__STATIC_INLINE void EFUSE_UnInit (EFUSE_T *efuse)
 Un-Init eFuse module. More...
 
__STATIC_INLINE uint32_t EFUSE_GetErrorStatus (EFUSE_T *efuse)
 Get eFuse error status flag. More...
 
__STATIC_INLINE void EFUSE_ClrErrorStatus (EFUSE_T *efuse)
 Clear eFuse error status flag. More...
 
uint8_t EFUSE_ReadByte (EFUSE_T *efuse, uint32_t addr)
 Read specified one byte from eFuse. More...
 
void EFUSE_WriteByte (EFUSE_T *efuse, uint32_t addr, uint8_t data)
 Write one byte data to specified eFuse address. More...
 
bool EFUSE_Read (EFUSE_T *efuse, uint32_t addr, uint8_t *data, uint16_t len)
 Read multiple data from eFuse. More...
 
bool EFUSE_Write (EFUSE_T *efuse, uint32_t addr, uint8_t *data, uint16_t len)
 Write multiple data to eFuse. More...
 
bool EFUSE_UserRead (EFUSE_T *efuse, uint32_t addr, uint8_t *data, uint16_t len)
 Read multiple data from User Area of eFuse (Address 0xE9 ~ 0xFF). More...
 
bool EFUSE_UserWrite (EFUSE_T *efuse, uint32_t addr, uint8_t *data, uint16_t len)
 Write multiple data to User Area of eFuse (Address 0xE9 ~ 0xFF). More...
 

Detailed Description

Efuse Interface.

Function Documentation

◆ EFUSE_ClrErrorStatus()

__STATIC_INLINE void EFUSE_ClrErrorStatus ( EFUSE_T *  efuse)

Clear eFuse error status flag.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
Returns
None

◆ EFUSE_GetErrorStatus()

__STATIC_INLINE uint32_t EFUSE_GetErrorStatus ( EFUSE_T *  efuse)

Get eFuse error status flag.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
Return values
EFUSE_STATUS_OKThe previous eFuse operation success.
EFUSE_STATUS_FAILThe previous eFuse operation is illegal.

◆ EFUSE_Init()

__STATIC_INLINE void EFUSE_Init ( EFUSE_T *  efuse)

Init eFuse module.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
Returns
None.
Note
Unlock register before use this API.

◆ EFUSE_Read()

bool EFUSE_Read ( EFUSE_T *  efuse,
uint32_t  addr,
uint8_t *  data,
uint16_t  len 
)

Read multiple data from eFuse.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to read data from.
[in]dataBuffer to store data read from eFuse.
[in]lenNumber of bytes to read.
Return values
trueRead success.
falseError occurs while reading.
Note
Unlock register before use this API.

◆ EFUSE_ReadByte()

uint8_t EFUSE_ReadByte ( EFUSE_T *  efuse,
uint32_t  addr 
)

Read specified one byte from eFuse.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to read data from.
Returns
Data read from eFuse.
Note
Unlock register before use this API.

◆ EFUSE_UnInit()

__STATIC_INLINE void EFUSE_UnInit ( EFUSE_T *  efuse)

Un-Init eFuse module.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
Returns
None.
Note
Unlock register before use this API.

◆ EFUSE_UserRead()

bool EFUSE_UserRead ( EFUSE_T *  efuse,
uint32_t  addr,
uint8_t *  data,
uint16_t  len 
)

Read multiple data from User Area of eFuse (Address 0xE9 ~ 0xFF).

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to read data from, should be in range of 0xE9 ~ 0xFF.
[in]dataBuffer to store data read from eFuse.
[in]lenNumber of bytes to read.
Return values
trueRead success.
falseError, illegal parameter (addr or len).
Note
Unlock register before use this API.

◆ EFUSE_UserWrite()

bool EFUSE_UserWrite ( EFUSE_T *  efuse,
uint32_t  addr,
uint8_t *  data,
uint16_t  len 
)

Write multiple data to User Area of eFuse (Address 0xE9 ~ 0xFF).

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to write data to, should be in range of 0xE9 ~ 0xFF.
[in]dataBuffer to store data to be write to eFuse.
[in]lenNumber of bytes to write.
Return values
trueWrite success.
falseError, illegal parameter (addr or len).
Note
Unlock register before use this API.

◆ EFUSE_Write()

bool EFUSE_Write ( EFUSE_T *  efuse,
uint32_t  addr,
uint8_t *  data,
uint16_t  len 
)

Write multiple data to eFuse.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to write data to.
[in]dataBuffer to store data to be write to eFuse.
[in]lenNumber of bytes to write.
Return values
trueWrite success.
falseError occurs while writing.
Note
Unlock register before use this API.

◆ EFUSE_WriteByte()

void EFUSE_WriteByte ( EFUSE_T *  efuse,
uint32_t  addr,
uint8_t  data 
)

Write one byte data to specified eFuse address.

Parameters
[in]efuseModule name of eFuse, typically EFUSE.
[in]addreFuse address to write data to.
[in]dataData to write to eFuse.
Returns
None.
Note
Unlock register before use this API.