Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/hal_nxp-latest/mcux/mcux-sdk/drivers/asrc/
Dfsl_asrc.h37 #define ASRC_ASRCTR_AT_MASK(index) ((uint32_t)1U << (ASRC_ASRCTR_ATSA_SHIFT + (uint32_t)(index))) argument
38 #define ASRC_ASRCTR_RATIO_MASK(index) ((uint32_t)3U << (ASRC_ASRCTR_IDRA_SHIFT + (uint32_t)(index)*… argument
39 #define ASRC_ASRCTR_RATIO(ratio, index) \ argument
40 …nt32_t)(ratio) << (ASRC_ASRCTR_IDRA_SHIFT + (uint32_t)(index)*2U))) & ASRC_ASRCTR_RATIO_MASK(index
41 #define ASRC_ASRIER_INPUT_INTERRUPT_MASK(index) ((uint32_t)1U << (ASRC_ASRIER_ADIEA_SHIFT + (ui… argument
42 …efine ASRC_ASRIER_OUTPUTPUT_INTERRUPT_MASK(index) ((uint32_t)1U << (ASRC_ASRIER_ADOEA_SHIFT + (uin… argument
43 …efine ASRC_ASRCNCR_CHANNEL_COUNTER_MASK(index) ((uint32_t)0xFU << (ASRC_ASRCNCR_ANCA_SHIFT + (u… argument
44 #define ASRC_ASRCNCR_CHANNEL_COUNTER(counter, index) \ argument
45 ((uint32_t)((uint32_t)(counter) << (ASRC_ASRCNCR_ANCA_SHIFT + (uint32_t)(index)*4U)) & \
46 ASRC_ASRCNCR_CHANNEL_COUNTER_MASK(index))
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexio/
Dfsl_flexio.c196 …FLEXIO_GetShifterBufferAddress(FLEXIO_Type *base, flexio_shifter_buffer_type_t type, uint8_t index) in FLEXIO_GetShifterBufferAddress() argument
198 assert(index < FLEXIO_SHIFTBUF_COUNT); in FLEXIO_GetShifterBufferAddress()
205 address = (uint32_t) & (base->SHIFTBUF[index]); in FLEXIO_GetShifterBufferAddress()
209 address = (uint32_t) & (base->SHIFTBUFBIS[index]); in FLEXIO_GetShifterBufferAddress()
213 address = (uint32_t) & (base->SHIFTBUFBYS[index]); in FLEXIO_GetShifterBufferAddress()
217 address = (uint32_t) & (base->SHIFTBUFBBS[index]); in FLEXIO_GetShifterBufferAddress()
222 address = (uint32_t) & (base->SHIFTBUFNBS[index]); in FLEXIO_GetShifterBufferAddress()
228 address = (uint32_t) & (base->SHIFTBUFHWS[index]); in FLEXIO_GetShifterBufferAddress()
234 address = (uint32_t) & (base->SHIFTBUFNIS[index]); in FLEXIO_GetShifterBufferAddress()
239 address = (uint32_t) & (base->SHIFTBUF[index]); in FLEXIO_GetShifterBufferAddress()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Driver/VIO/Source/
Dvio_memory.c111 uint32_t index = id; in vioSetValue() local
113 if (index >= VIO_VALUE_NUM) { in vioSetValue()
117 vioValue[index] = value; in vioSetValue()
122 uint32_t index = id; in vioGetValue() local
125 if (index >= VIO_VALUE_NUM) { in vioGetValue()
129 value = vioValue[index]; in vioGetValue()
136 uint32_t index = id; in vioSetXYZ() local
138 if (index >= VIO_VALUEXYZ_NUM) { in vioSetXYZ()
142 vioValueXYZ[index] = valueXYZ; in vioSetXYZ()
147 uint32_t index = id; in vioGetXYZ() local
[all …]
Dvio.c164 uint32_t index = id; in vioSetValue() local
170 if (index >= VIO_VALUE_NUM) { in vioSetValue()
174 vioValue[index] = value; in vioSetValue()
184 uint32_t index = id; in vioGetValue() local
191 if (index >= VIO_VALUE_NUM) { in vioGetValue()
201 value = vioValue[index]; in vioGetValue()
208 uint32_t index = id; in vioSetXYZ() local
214 if (index >= VIO_VALUEXYZ_NUM) { in vioSetXYZ()
218 vioValueXYZ[index] = valueXYZ; in vioSetXYZ()
228 uint32_t index = id; in vioGetXYZ() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_enet/
Dfsl_enet.c59 static uint16_t ENET_IncreaseIndex(uint16_t index, uint16_t max);
165 static uint16_t ENET_IncreaseIndex(uint16_t index, uint16_t max) in ENET_IncreaseIndex() argument
168 index++; in ENET_IncreaseIndex()
169 if (index >= max) in ENET_IncreaseIndex()
171 index = 0; in ENET_IncreaseIndex()
173 return index; in ENET_IncreaseIndex()
198 uint8_t index; in ENET_SetDMAControl() local
210 for (index = 0; index < ENET_RING_NUM_MAX; index++) in ENET_SetDMAControl()
217 base->DMA_CH[index].DMA_CHX_CTRL = burstLen & ENET_DMA_CH_DMA_CHX_CTRL_PBLx8_MASK; in ENET_SetDMAControl()
219 reg = base->DMA_CH[index].DMA_CHX_TX_CTRL & ~ENET_DMA_CH_DMA_CHX_TX_CTRL_TxPBL_MASK; in ENET_SetDMAControl()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/enet_qos/
Dfsl_enet_qos.c67 static uint16_t ENET_QOS_IncreaseIndex(uint16_t index, uint16_t max);
254 static uint16_t ENET_QOS_IncreaseIndex(uint16_t index, uint16_t max) in ENET_QOS_IncreaseIndex() argument
257 index++; in ENET_QOS_IncreaseIndex()
258 if (index >= max) in ENET_QOS_IncreaseIndex()
260 index = 0; in ENET_QOS_IncreaseIndex()
262 return index; in ENET_QOS_IncreaseIndex()
278 uint8_t index; in ENET_QOS_SetDMAControl() local
332 for (index = 0; index < ENET_QOS_RING_NUM_MAX; index++) in ENET_QOS_SetDMAControl()
339 base->DMA_CH[index].DMA_CHX_CTRL = burstLen & ENET_QOS_DMA_CHX_CTRL_PBLx8_MASK; in ENET_QOS_SetDMAControl()
341 reg = base->DMA_CH[index].DMA_CHX_TX_CTRL & ~ENET_QOS_DMA_CHX_TX_CTRL_TxPBL_MASK; in ENET_QOS_SetDMAControl()
[all …]
/hal_nxp-latest/imx/drivers/
Drdc_semaphore.c65 uint32_t index = pdap; in RDC_SEMAPHORE_TryLock() local
67 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_TryLock()
69 semaphore->GATE[index] = RDC_SEMAPHORE_GATE_GTFSM(RDC_SEMAPHORE_MASTER_SELF + 1); in RDC_SEMAPHORE_TryLock()
71 return ((semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) == in RDC_SEMAPHORE_TryLock()
86 uint32_t index = pdap; in RDC_SEMAPHORE_Lock() local
88 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_Lock()
92 while (semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) { } in RDC_SEMAPHORE_Lock()
93 semaphore->GATE[index] = RDC_SEMAPHORE_GATE_GTFSM(RDC_SEMAPHORE_MASTER_SELF + 1); in RDC_SEMAPHORE_Lock()
94 } while ((semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) != in RDC_SEMAPHORE_Lock()
107 uint32_t index = pdap; in RDC_SEMAPHORE_Unlock() local
[all …]
Dmu_imx.h193 static inline bool MU_IsTxEmpty(MU_Type * base, uint32_t index) in MU_IsTxEmpty() argument
195 return (bool)(base->SR & (MU_SR_TE0_MASK >> index)); in MU_IsTxEmpty()
212 static inline void MU_EnableTxEmptyInt(MU_Type * base, uint32_t index) in MU_EnableTxEmptyInt() argument
215 | (MU_CR_TIE0_MASK>>index); // Set TIEn in MU_EnableTxEmptyInt()
232 static inline void MU_DisableTxEmptyInt(MU_Type * base, uint32_t index) in MU_DisableTxEmptyInt() argument
234 base->CR &= ~(MU_CR_GIRn_MASK | (MU_CR_TIE0_MASK>>index)); // Clear GIRn , clear TIEn in MU_DisableTxEmptyInt()
279 static inline bool MU_IsRxFull(MU_Type * base, uint32_t index) in MU_IsRxFull() argument
281 return (bool)(base->SR & (MU_SR_RF0_MASK >> index)); in MU_IsRxFull()
298 static inline void MU_EnableRxFullInt(MU_Type * base, uint32_t index) in MU_EnableRxFullInt() argument
301 | (MU_CR_RIE0_MASK>>index); // Set RIEn in MU_EnableRxFullInt()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/mcx_enet/
Dfsl_enet.c58 static uint16_t ENET_IncreaseIndex(uint16_t index, uint16_t max);
166 static uint16_t ENET_IncreaseIndex(uint16_t index, uint16_t max) in ENET_IncreaseIndex() argument
169 index++; in ENET_IncreaseIndex()
170 if (index >= max) in ENET_IncreaseIndex()
172 index = 0; in ENET_IncreaseIndex()
174 return index; in ENET_IncreaseIndex()
199 uint8_t index; in ENET_SetDMAControl() local
211 for (index = 0; index < ENET_RING_NUM_MAX; index++) in ENET_SetDMAControl()
218 base->DMA_CH[index].DMA_CHX_CTRL = burstLen & ENET_DMA_CH_DMA_CHX_CTRL_PBLx8_MASK; in ENET_SetDMAControl()
220 reg = base->DMA_CH[index].DMA_CHX_TX_CTRL & ~ENET_DMA_CH_DMA_CHX_TX_CTRL_TxPBL_MASK; in ENET_SetDMAControl()
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/device/
Dusb_device_khci.c111 uint32_t index = ((uint32_t)endpoint << 1U) | (uint32_t)direction; local
118 khciState->endpointState[index].stateUnion.stateBitField.transferring = 1U;
122 … khciState->endpointState[index].stateUnion.stateBitField.bdtOdd, (uint32_t)buffer);
126 …(uint32_t)khciState->bdt, endpoint, direction, khciState->endpointState[index].stateUnion.stateBit…
128 … USB_KHCI_BDT_DATA01(khciState->endpointState[index].stateUnion.stateBitField.data0)));
283 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | (uint8_t)direction; in USB_DeviceKhciEndpointInit() local
303 khciState->endpointState[index].stateUnion.stateBitField.transferring = 0U; in USB_DeviceKhciEndpointInit()
305 khciState->endpointState[index].stateUnion.stateBitField.maxPacketSize = maxPacketSize; in USB_DeviceKhciEndpointInit()
307 khciState->endpointState[index].stateUnion.stateBitField.data0 = 0U; in USB_DeviceKhciEndpointInit()
309 khciState->endpointState[index].stateUnion.stateBitField.stalled = 0U; in USB_DeviceKhciEndpointInit()
[all …]
Dusb_device_ehci.c253 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | direction; in USB_DeviceEhciEndpointInit() local
278 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.mult = in USB_DeviceEhciEndpointInit()
284 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.mult = 0U; in USB_DeviceEhciEndpointInit()
288 …ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.maxPacketS… in USB_DeviceEhciEndpointInit()
290 ehciState->qh[index].endpointStatusUnion.endpointStatusBitmap.zlt = epInit->zlt; in USB_DeviceEhciEndpointInit()
294 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.zlt = 1U; in USB_DeviceEhciEndpointInit()
299 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.zlt = in USB_DeviceEhciEndpointInit()
306 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.ios = 1U; in USB_DeviceEhciEndpointInit()
314 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.ios = 0U; in USB_DeviceEhciEndpointInit()
321 ehciState->qh[index].endpointStatusUnion.endpointStatusBitmap.isOpened = 1U; in USB_DeviceEhciEndpointInit()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/pf3000/
Dfsl_pf3000.c176 uint32_t index; in PF3000_GetRegulatorSetPoint() local
197 index = PF3000_SW1A_SET_POINT_MAX_NUM; in PF3000_GetRegulatorSetPoint()
201 index = PF3000_SW1A_SET_POINT_MAX_NUM - 1U; in PF3000_GetRegulatorSetPoint()
205 for (index = PF3000_SW1A_SET_POINT_MAX_NUM - 2U; index > 0U; index--) in PF3000_GetRegulatorSetPoint()
207 … if ((PF3000_SW1A_OUTPUT_LIMIT_LOW_DVS + (PF3000_SW1A_OUTPUT_STEP_DVS * index)) <= voltage) in PF3000_GetRegulatorSetPoint()
217 for (index = PF3000_SW1B_SET_POINT_MAX_NUM; index > 0U; index--) in PF3000_GetRegulatorSetPoint()
219 … if ((PF3000_SW1B_OUTPUT_LIMIT_LOW_DVS + (PF3000_SW1B_OUTPUT_STEP_DVS * index)) <= voltage) in PF3000_GetRegulatorSetPoint()
236 for (index = PF3000_SW2_SET_POINT_MAX_NUM; index > 0U; index--) in PF3000_GetRegulatorSetPoint()
238 … if ((PF3000_SW2_OUTPUT_LIMIT_LOW_DVS + (PF3000_SW2_OUTPUT_STEP_DVS * index)) <= voltage) in PF3000_GetRegulatorSetPoint()
249 index = 0x7U; in PF3000_GetRegulatorSetPoint()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/
Dsrtm_audio_service.c87 uint8_t index; member
104 …tic srtm_audio_iface_t SRTM_AudioService_FindInterface(srtm_audio_service_t handle, uint8_t index);
130 uint32_t index) in SRTM_AudioService_HandlePeriodDone() argument
134 uint32_t audioIdx = index >> 24U; in SRTM_AudioService_HandlePeriodDone()
135 uint32_t periodIdx = index & 0xFFFFFFU; in SRTM_AudioService_HandlePeriodDone()
155 payload->index = (uint8_t)audioIdx; in SRTM_AudioService_HandlePeriodDone()
177 uint8_t index, in SRTM_AudioService_PeriodDone() argument
181 srtm_audio_iface_t iface = SRTM_AudioService_FindInterface(handle, index); in SRTM_AudioService_PeriodDone()
210 … proc->procMsg.param2 = (void *)(uint8_t *)((((uint32_t)index) << 24U) | (periodIdx & 0xFFFFFFU)); in SRTM_AudioService_PeriodDone()
263 audioRespBuf[0] = (audioReq != NULL) ? audioReq->index : 0U; in SRTM_AudioService_Request()
[all …]
Dsrtm_audio_service.h90 …srtm_status_t (*periodDone)(srtm_service_t service, srtm_audio_dir_t dir, uint8_t index, uint32_t …
93 srtm_status_t (*open)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
94 srtm_status_t (*start)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
95 srtm_status_t (*pause)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
96 srtm_status_t (*restart)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
97 srtm_status_t (*stop)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
98 srtm_status_t (*close)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
101 uint8_t index,
107 uint8_t index,
112 srtm_status_t (*suspend)(srtm_sai_adapter_t adapter, srtm_audio_dir_t dir, uint8_t index);
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/host/
Dusb_host_ehci.c756 uint8_t index; in USB_HostEhciSingleStepQtdListInit() local
798 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
800 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
819 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
821 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
1116 uint8_t index; in USB_HostBandwidthHsHostComputeCurrentFsls() local
1120 for (index = 0; index < 8U; ++index) in USB_HostBandwidthHsHostComputeCurrentFsls()
1122 frameBandwidths[index] = 0; in USB_HostBandwidthHsHostComputeCurrentFsls()
1173 for (index = 0; index < 7U; ++index) /* */ in USB_HostBandwidthHsHostComputeCurrentFsls()
1175 if (frameBandwidths[index] > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostComputeCurrentFsls()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_gpio/
Dfsl_gpio.c153 void GPIO_PortEnableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortEnableInterrupts() argument
155 if ((uint32_t)kGPIO_InterruptA == index) in GPIO_PortEnableInterrupts()
159 else if ((uint32_t)kGPIO_InterruptB == index) in GPIO_PortEnableInterrupts()
177 void GPIO_PortDisableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortDisableInterrupts() argument
179 if ((uint32_t)kGPIO_InterruptA == index) in GPIO_PortDisableInterrupts()
183 else if ((uint32_t)kGPIO_InterruptB == index) in GPIO_PortDisableInterrupts()
202 void GPIO_PortClearInterruptFlags(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortClearInterruptFlags() argument
204 if ((uint32_t)kGPIO_InterruptA == index) in GPIO_PortClearInterruptFlags()
208 else if ((uint32_t)kGPIO_InterruptB == index) in GPIO_PortClearInterruptFlags()
226 uint32_t GPIO_PortGetInterruptStatus(GPIO_Type *base, uint32_t port, uint32_t index) in GPIO_PortGetInterruptStatus() argument
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/ctimer/
Dfsl_ctimer.c33 static void CTIMER_GenericIRQHandler(uint32_t index);
129 uint32_t index = CTIMER_GetInstance(base); in CTIMER_Deinit() local
135 CLOCK_DisableClock(s_ctimerClocks[index]); in CTIMER_Deinit()
139 (void)DisableIRQ(s_ctimerIRQ[index]); in CTIMER_Deinit()
203 uint32_t index = CTIMER_GetInstance(base); in CTIMER_SetupPwm() local
253 (void)EnableIRQ(s_ctimerIRQ[index]); in CTIMER_SetupPwm()
293 uint32_t index = CTIMER_GetInstance(base); in CTIMER_SetupPwmPeriod() local
330 (void)EnableIRQ(s_ctimerIRQ[index]); in CTIMER_SetupPwmPeriod()
387 uint32_t index = CTIMER_GetInstance(base); in CTIMER_SetupMatch() local
416 (void)EnableIRQ(s_ctimerIRQ[index]); in CTIMER_SetupMatch()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/cmc/
Dfsl_cmc.h31 #define CMC_BLR_LOCK_IDX_MASK(index) ((uint32_t)CMC_BLR_LOCK0_MASK << (CMC_BLR_LOCK_FIELD_WIDTH * … argument
32 #define CMC_BLR_LOCK_IDX_SHIFT(index) (CMC_BLR_LOCK_FIELD_WIDTH * (uint32_t)(index)) argument
33 #define CMC_BLR_LOCK_IDX(index, value) \ argument
34 …(((uint32_t)(((uint32_t)(value)) << CMC_BLR_LOCK_IDX_SHIFT(index))) & CMC_BLR_LOCK_IDX_MASK(index))
672 static inline void CMC_LockWriteOperationToBootRomStatusReg(CMC_Type *base, uint8_t index) in CMC_LockWriteOperationToBootRomStatusReg() argument
674 assert((uint32_t)index < CMC_BSR_COUNT); in CMC_LockWriteOperationToBootRomStatusReg()
675 base->BLR = ((base->BLR & ~CMC_BLR_LOCK_IDX_MASK(index)) | CMC_BLR_LOCK_IDX(index, 0x5UL)); in CMC_LockWriteOperationToBootRomStatusReg()
687 static inline bool CMC_CheckBootRomStatusRegWriteLocked(CMC_Type *base, uint8_t index) in CMC_CheckBootRomStatusRegWriteLocked() argument
689 assert((uint32_t)index < CMC_BSR_COUNT); in CMC_CheckBootRomStatusRegWriteLocked()
690 return ((base->BLR & CMC_BLR_LOCK_IDX_MASK(index)) == CMC_BLR_LOCK_IDX(index, 0x5UL)); in CMC_CheckBootRomStatusRegWriteLocked()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/netc/
Dfsl_netc_endpoint.c76 uint32_t index; in EP_RxBufferFreeAll() local
87 for (index = 0U; index < maxHwBdNum; index++) in EP_RxBufferFreeAll()
89 if (rxBdRing->buffArray[index] != 0U) in EP_RxBufferFreeAll()
91 … handle->cfg.rxBuffFree(handle, ring, (void *)(uint8_t *)(uintptr_t)rxBdRing->buffArray[index], in EP_RxBufferFreeAll()
113 uint16_t index; in EP_RxBufferAllocAll() local
125 for (index = 0U; index < rxRingConfig->len; index++) in EP_RxBufferAllocAll()
131 if (rxRingConfig->extendDescEn && (index % 2U != 0U)) in EP_RxBufferAllocAll()
137 buffIdx = rxRingConfig->extendDescEn ? (index / 2U) : index; in EP_RxBufferAllocAll()
1046 netc_rx_bd_t *rxDesc = &rxBdRing->bdBase[rxBdRing->index]; in EP_GetRxFrameSizeCommon()
1047 uint16_t index = rxBdRing->index; in EP_GetRxFrameSizeCommon() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/itrc_1/
Dfsl_itrc.c167 uint32_t sel0, sel1, index, select_AND_mask; in ITRC_SetActionToEvent() local
196 index = 2UL * (uint32_t)in; in ITRC_SetActionToEvent()
199 if (index > 2UL * ITRC_INPUT_SIGNALS_NUM) in ITRC_SetActionToEvent()
204 if (index < 32UL) in ITRC_SetActionToEvent()
207 select_AND_mask = ~(b11 << index); in ITRC_SetActionToEvent()
212 base->OUT0_SEL0 = (base->OUT0_SEL0 & select_AND_mask) | (sel0 << index); in ITRC_SetActionToEvent()
213 base->OUT0_SEL1 |= sel1 << index; in ITRC_SetActionToEvent()
217 base->OUT1_SEL0 = (base->OUT1_SEL0 & select_AND_mask) | (sel0 << index); in ITRC_SetActionToEvent()
218 base->OUT1_SEL1 |= sel1 << index; in ITRC_SetActionToEvent()
228 index -= 32UL; in ITRC_SetActionToEvent()
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/dcd/
Dusb_phydcd.c38 uint8_t index; /*!< analog instance index*/ member
56 usb_phydcd_status_t USB_PHYDCD_Init(uint8_t index, usb_phydcd_config_struct_t *config, usb_phydcd_h… in USB_PHYDCD_Init() argument
74 dcdState = &s_UsbDeviceDcdHSState[index]; in USB_PHYDCD_Init()
75 dcdState->index = index; in USB_PHYDCD_Init()
76 temp = (uint32_t *)phyBase[index]; in USB_PHYDCD_Init()
92 dcdState->index = 0U; in USB_PHYDCD_Deinit()
163 …dcdState->usbAnalogBase->INSTANCE[dcdState->index].CHRG_DETECT_CLR |= USB_ANALOG_CHRG_DETECT_CLR_E… in USB_PHYDCD_TimerIsrFunction()
164 dcdState->usbAnalogBase->INSTANCE[dcdState->index].CHRG_DETECT_SET |= in USB_PHYDCD_TimerIsrFunction()
171 if (0U != (dcdState->usbAnalogBase->INSTANCE[dcdState->index].CHRG_DETECT_STAT & in USB_PHYDCD_TimerIsrFunction()
178 dcdState->usbAnalogBase->INSTANCE[dcdState->index].CHRG_DETECT_CLR |= in USB_PHYDCD_TimerIsrFunction()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/aes/
Dfsl_aes.c168 int index; in aes_load_key() local
210 for (index = 0; index < keyWords; index++) in aes_load_key()
212 base->KEY[index] = swap_bytes(aes_get_word_from_unaligned(key)); in aes_load_key()
230 int index; in aes_one_block() local
252 for (index = 0; index < 4; index++) in aes_one_block()
254 base->INTEXT[index] = aes_get_word_from_unaligned(input); in aes_one_block()
265 for (index = 0; index < 4; index++) in aes_one_block()
267 aes_set_unaligned_from_word(base->OUTTEXT[index], output); in aes_one_block()
333 int index; in aes_set_holding() local
335 for (index = 0; index < 4; index++) in aes_set_holding()
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/output/source/device/class/
Dusb_device_printer.c39 uint8_t index; local
41 for (index = 0; index < USB_DEVICE_CONFIG_PRINTER; ++index)
43 if (s_PrinterHandle[index].deviceHandle == NULL)
45 *printerHandle = &(s_PrinterHandle[index]);
160 uint8_t index; in USB_DevicePrinterEndpointsInit() local
176 for (index = 0; index < configInterfaceList->interfaces[interfaceIndex].count; ++index) in USB_DevicePrinterEndpointsInit()
178 … if (configInterfaceList->interfaces[interfaceIndex].interface[index].alternateSetting == in USB_DevicePrinterEndpointsInit()
181 interface = &(configInterfaceList->interfaces[interfaceIndex].interface[index]); in USB_DevicePrinterEndpointsInit()
199 for (index = 0; index < interface->endpointList.count; ++index) in USB_DevicePrinterEndpointsInit()
204 epInitStruct.interval = interface->endpointList.endpoint[index].interval; in USB_DevicePrinterEndpointsInit()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/devices/MKW40Z4/
DMKW40Z4_extension.h145 #define ADC_RD_SC1(base, index) (ADC_SC1_REG(base, index)) argument
146 #define ADC_WR_SC1(base, index, value) (ADC_SC1_REG(base, index) = (value)) argument
147 #define ADC_RMW_SC1(base, index, mask, value) (ADC_WR_SC1(base, index, (ADC_RD_SC1(base, index) & ~… argument
148 #define ADC_SET_SC1(base, index, value) (BME_OR32(&ADC_SC1_REG(base, index), (uint32_t)(value))) argument
149 #define ADC_CLR_SC1(base, index, value) (BME_AND32(&ADC_SC1_REG(base, index), (uint32_t)(~(value)))) argument
150 #define ADC_TOG_SC1(base, index, value) (BME_XOR32(&ADC_SC1_REG(base, index), (uint32_t)(value))) argument
238 #define ADC_RD_SC1_ADCH(base, index) ((ADC_SC1_REG(base, index) & ADC_SC1_ADCH_MASK) >> ADC_SC1_ADC… argument
239 #define ADC_BRD_SC1_ADCH(base, index) (BME_UBFX32(&ADC_SC1_REG(base, index), ADC_SC1_ADCH_SHIFT, AD… argument
242 #define ADC_WR_SC1_ADCH(base, index, value) (ADC_RMW_SC1(base, index, ADC_SC1_ADCH_MASK, ADC_SC1_AD… argument
243 #define ADC_BWR_SC1_ADCH(base, index, value) (BME_BFI32(&ADC_SC1_REG(base, index), ((uint32_t)(valu… argument
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/pf1550/
Dfsl_pf1550.c157 uint32_t index; in PF1550_GetRegulatorSetPoint() local
170 for (index = 0U; index < PF1550_SWX_SET_POINT_NUM; index++) in PF1550_GetRegulatorSetPoint()
172 … if ((PF1550_SWX_OUTPUT_LIMIT_LOW_DVS + (PF1550_SWX_OUTPUT_STEP_DVS * index)) >= voltage) in PF1550_GetRegulatorSetPoint()
174 regulatorSetPoint = (uint8_t)index; in PF1550_GetRegulatorSetPoint()
179 if (PF1550_SWX_SET_POINT_NUM == index) in PF1550_GetRegulatorSetPoint()
188 for (index = 0U; index < PF1550_SWY_SET_POINT_NUM; index++) in PF1550_GetRegulatorSetPoint()
190 if ((PF1550_SWY_OUTPUT_LIMIT_LOW + (PF1550_SWY_OUTPUT_STEP * index)) >= voltage) in PF1550_GetRegulatorSetPoint()
192 regulatorSetPoint = (uint8_t)index; in PF1550_GetRegulatorSetPoint()
197 if (PF1550_SWY_SET_POINT_NUM == index) in PF1550_GetRegulatorSetPoint()
205 for (index = 0U; index < PF1550_LDOX_SET_POINT_NUM; index++) in PF1550_GetRegulatorSetPoint()
[all …]

12345678910>>...20