Firmware User Manual (AE-step)
82
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
Prototype
uint8_t user_nac_get (void)
Parameters
void
Return Values
6.8.8
user_nac_set
Description
This user API function configures the NAC value in the non volatile device configuration memory.
This function rejects with an error in case the NVM code segment is write protected.
Prototype
int32_t user_nac_set (
uint8_t nac
)
Parameters
Return Values
Remarks
Any NAC value larger than 28 gets clipped to 28
Data Type
Description
uint8_t
NAC value that is found in the configuration memory. It returns "wait forever" (0xFF)
in case no NAC value is currently configured in the configuration memory.
Data Type
Name
Description
Dir
uint8_t
nac
NAC value to be stored in the device configuration
memory.
-
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case of successful write operation, otherwise a negative
error code. Returned error code can be one of the following: ERR_LOG_SUCCESS,
ERR_LOG_CODE_USERAPI_CONFIG_SECTOR_WRITE_PROTECTED,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_ACCESS_AB_MODE_ERROR