MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClResource_Types.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2022-2023, 2025 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
18
19
20#ifndef MCUXCLRESOURCE_TYPES_H_
21#define MCUXCLRESOURCE_TYPES_H_
22
23#include <mcuxClCore_Platform.h>
24
25
26/**********************************************
27 * TYPEDEFS
28 **********************************************/
35
42typedef uint32_t mcuxClResource_Status_t;
43
47typedef struct mcuxClResource_Context mcuxClResource_Context_t;
48
52typedef uint32_t (*mcuxClResource_MutexAcquire_Callback_t)(uint32_t value);
53
57typedef uint32_t (*mcuxClResource_MutexRelease_Callback_t)(uint32_t value);
58
59typedef uint32_t mcuxClResource_HwId_t;
60typedef uint32_t mcuxClResource_HwStatus_t;
61typedef uint32_t mcuxClResource_Interrupt_t;
62 /* mcuxClResource_Types */
66
67
68/**********************************************
69 * CONSTANTS
70 **********************************************/
77
82#define MCUXCLRESOURCE_STATUS_OK ((mcuxClResource_Status_t) 0x0CCC2E03u)
83#define MCUXCLRESOURCE_STATUS_UNAVAILABLE ((mcuxClResource_Status_t) 0x0CCC5334u)
84#define MCUXCLRESOURCE_STATUS_ERROR ((mcuxClResource_Status_t) 0x0CCC5330u)
85#define MCUXCLRESOURCE_STATUS_FAULT_ATTACK ((mcuxClResource_Status_t) 0x0CCCF0F0u)
86
88
94#define MCUXCLRESOURCE_HWSTATUS_SIZE_IN_BITS (2u)
95#define MCUXCLRESOURCE_HWSTATUS_INTERRUPTABLE ((mcuxClResource_HwStatus_t) 0x01u)
96#define MCUXCLRESOURCE_HWSTATUS_NON_INTERRUPTABLE ((mcuxClResource_HwStatus_t) 0x02u)
97
98
100 /* mcuxClResource_Constants */
104
105
106#endif /* MCUXCLRESOURCE_TYPES_H_ */
struct mcuxClResource_Context mcuxClResource_Context_t
Resource context type.
Definition mcuxClResource_Types.h:47
uint32_t(* mcuxClResource_MutexRelease_Callback_t)(uint32_t value)
Callback type for releasing a mutex.
Definition mcuxClResource_Types.h:57
uint32_t(* mcuxClResource_MutexAcquire_Callback_t)(uint32_t value)
Callback type for acquiring a mutex.
Definition mcuxClResource_Types.h:52
uint32_t mcuxClResource_Status_t
Type for mcuxClResource status codes.
Definition mcuxClResource_Types.h:42