8#ifndef _FSL_RDC_SEMA42_H_
9#define _FSL_RDC_SEMA42_H_
11#include "fsl_common.h"
25#define FSL_RDC_SEMA42_DRIVER_VERSION (MAKE_VERSION(2, 0, 4))
29#define RDC_SEMA42_GATE_NUM_RESET_ALL (64U)
31#if defined(RDC_SEMAPHORE_GATE_COUNT)
34#define RDC_SEMA42_GATEn(base, n) ((base)->GATE[(n)])
37#define RDC_SEMA42_GATE_COUNT (RDC_SEMAPHORE_GATE_COUNT)
42#define RDC_SEMA42_GATEn(base, n) (((volatile uint8_t *)(&((base)->GATE0)))[(n)])
45#define RDC_SEMA42_GATE_COUNT (64U)
48#define RDC_SEMAPHORE_GATE_GTFSM_MASK RDC_SEMAPHORE_GATE0_GTFSM_MASK
56#if defined(__cplusplus)
138static inline int32_t RDC_SEMA42_GetLockMasterIndex(
RDC_SEMAPHORE_Type *base, uint8_t gateNum)
144 return (int32_t)((uint8_t)(regGate & RDC_SEMAPHORE_GATE_GTFSM_MASK)) - 1;
186#if defined(__cplusplus)
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
#define RDC_SEMA42_GATE_COUNT
RDC_SEMA42 gate count.
Definition: fsl_rdc_sema42.h:45
void RDC_SEMA42_Deinit(RDC_SEMAPHORE_Type *base)
De-initializes the RDC_SEMA42 module.
Definition: fsl_rdc_sema42.c:105
#define RDC_SEMA42_GATE_NUM_RESET_ALL
The number to reset all RDC_SEMA42 gates.
Definition: fsl_rdc_sema42.h:29
void RDC_SEMA42_Lock(RDC_SEMAPHORE_Type *base, uint8_t gateNum, uint8_t masterIndex, uint8_t domainId)
Locks the RDC_SEMA42 gate.
Definition: fsl_rdc_sema42.c:163
void RDC_SEMA42_Init(RDC_SEMAPHORE_Type *base)
Initializes the RDC_SEMA42 module.
Definition: fsl_rdc_sema42.c:89
status_t RDC_SEMA42_ResetGate(RDC_SEMAPHORE_Type *base, uint8_t gateNum)
Resets the RDC_SEMA42 gate to an unlocked status.
Definition: fsl_rdc_sema42.c:210
#define RDC_SEMA42_GATEn(base, n)
RDC_SEMA42 gate n register address.
Definition: fsl_rdc_sema42.h:42
status_t RDC_SEMA42_TryLock(RDC_SEMAPHORE_Type *base, uint8_t gateNum, uint8_t masterIndex, uint8_t domainId)
Tries to lock the RDC_SEMA42 gate.
Definition: fsl_rdc_sema42.c:128
int32_t RDC_SEMA42_GetLockDomainID(RDC_SEMAPHORE_Type *base, uint8_t gateNum)
Gets which domain has currently locked the gate.
Definition: fsl_rdc_sema42.c:179
Definition: MIMXRT1166_cm4.h:72538