MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClOsccaSafo_Sfr_Status.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2023 NXP */
3/* */
4/* NXP Confidential. This software is owned or controlled by NXP and may */
5/* only be used strictly in accordance with the applicable license terms. */
6/* By expressly accepting such terms or by downloading, installing, */
7/* activating and/or otherwise using the software, you are agreeing that */
8/* you have read, and that you agree to comply with and are bound by, such */
9/* license terms. If you do not agree to be bound by the applicable license */
10/* terms, then you may not retain, install, activate or otherwise use the */
11/* software. */
12/*--------------------------------------------------------------------------*/
13
14#ifndef MCUXCLOSCCASAFO_SFR_STATUS_H_
15#define MCUXCLOSCCASAFO_SFR_STATUS_H_
16
18#include <platform_specific_headers.h>
20
21#define MCUXCLOSCCASAFO_SFR_STATUS_ERROR_OK (0x5u)
22#define MCUXCLOSCCASAFO_SFR_STATUS_ERROR_ERROR (0x2u)
23
24#define MCUXCLOSCCASAFO_SFR_STATUS_ERROR(status) ((MCUXCLOSCCASAFO_SFR_STATUS_ERROR_OK << MCUXCLOSCCASAFO_SFR_FIELD_SHIFT(STATUS,ERROR)) != ((status) & MCUXCLOSCCASAFO_SFR_FIELD_MASK(STATUS,ERROR)))
25#define MCUXCLOSCCASAFO_SFR_STATUS_BUSY(status) (0u != ((status) & MCUXCLOSCCASAFO_SFR_FIELD_MASK(STATUS,BUSY)))
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31
35MCUX_CSSL_FP_FUNCTION_DEF(mcuxClOsccaSafo_Sfr_readStatus)
36static inline uint32_t mcuxClOsccaSafo_Sfr_readStatus(void)
37{
38 return MCUXCLOSCCASAFO_SFR_READ(STATUS);
39}
40
41#ifdef __cplusplus
42} /* extern "C" */
43#endif
44
45#endif /* MCUXCLOSCCASAFO_SFR_STATUS_H_ */
Macros for abstracting SAFO hardware SFR access.
#define MCUXCLOSCCASAFO_SFR_READ(sfr)
Read from SAFO SFR.
Definition mcuxClOsccaSafo_SfrAccess.h:42
Provides the API for the CSSL flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DEF(...)
Definition of a flow protected function.
Definition mcuxCsslFlowProtection.h:159