Home
last modified time | relevance | path

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

12345678910>>...19

/hal_nxp-3.6.0/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-3.6.0/mcux/mcux-sdk/drivers/flexio/
Dfsl_flexio.c173 …FLEXIO_GetShifterBufferAddress(FLEXIO_Type *base, flexio_shifter_buffer_type_t type, uint8_t index) in FLEXIO_GetShifterBufferAddress() argument
175 assert(index < FLEXIO_SHIFTBUF_COUNT); in FLEXIO_GetShifterBufferAddress()
182 address = (uint32_t) & (base->SHIFTBUF[index]); in FLEXIO_GetShifterBufferAddress()
186 address = (uint32_t) & (base->SHIFTBUFBIS[index]); in FLEXIO_GetShifterBufferAddress()
190 address = (uint32_t) & (base->SHIFTBUFBYS[index]); in FLEXIO_GetShifterBufferAddress()
194 address = (uint32_t) & (base->SHIFTBUFBBS[index]); in FLEXIO_GetShifterBufferAddress()
199 address = (uint32_t) & (base->SHIFTBUFNBS[index]); in FLEXIO_GetShifterBufferAddress()
205 address = (uint32_t) & (base->SHIFTBUFHWS[index]); in FLEXIO_GetShifterBufferAddress()
211 address = (uint32_t) & (base->SHIFTBUFNIS[index]); in FLEXIO_GetShifterBufferAddress()
216 address = (uint32_t) & (base->SHIFTBUF[index]); in FLEXIO_GetShifterBufferAddress()
[all …]
/hal_nxp-3.6.0/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-3.6.0/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-3.6.0/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-3.6.0/mcux/mcux-sdk/drivers/enet_qos/
Dfsl_enet_qos.c67 static uint16_t ENET_QOS_IncreaseIndex(uint16_t index, uint16_t max);
238 static uint16_t ENET_QOS_IncreaseIndex(uint16_t index, uint16_t max) in ENET_QOS_IncreaseIndex() argument
241 index++; in ENET_QOS_IncreaseIndex()
242 if (index >= max) in ENET_QOS_IncreaseIndex()
244 index = 0; in ENET_QOS_IncreaseIndex()
246 return index; in ENET_QOS_IncreaseIndex()
262 uint8_t index; in ENET_QOS_SetDMAControl() local
309 for (index = 0; index < ENET_QOS_RING_NUM_MAX; index++) in ENET_QOS_SetDMAControl()
316 base->DMA_CH[index].DMA_CHX_CTRL = burstLen & ENET_QOS_DMA_CHX_CTRL_PBLx8_MASK; in ENET_QOS_SetDMAControl()
318 reg = base->DMA_CH[index].DMA_CHX_TX_CTRL & ~ENET_QOS_DMA_CHX_TX_CTRL_TxPBL_MASK; in ENET_QOS_SetDMAControl()
[all …]
/hal_nxp-3.6.0/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-3.6.0/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-3.6.0/mcux/mcux-sdk/drivers/itrc/
Dfsl_itrc.c121 uint32_t sel0, sel1, index, select_AND_mask; in ITRC_SetActionToEvent() local
150 index = 2u * in; in ITRC_SetActionToEvent()
152 select_AND_mask = ~(b11 << index); in ITRC_SetActionToEvent()
155 if (index > 30u) in ITRC_SetActionToEvent()
163 base->OUT0_SEL0 = (base->OUT0_SEL0 & select_AND_mask) | (sel0 << index); in ITRC_SetActionToEvent()
164 base->OUT0_SEL1 |= sel1 << index; in ITRC_SetActionToEvent()
167 base->OUT1_SEL0 = (base->OUT1_SEL0 & select_AND_mask) | (sel0 << index); in ITRC_SetActionToEvent()
168 base->OUT1_SEL1 |= sel1 << index; in ITRC_SetActionToEvent()
172 base->OUT2_SEL0 = (base->OUT2_SEL0 & select_AND_mask) | (sel0 << index); in ITRC_SetActionToEvent()
173 base->OUT2_SEL1 |= sel1 << index; in ITRC_SetActionToEvent()
[all …]
/hal_nxp-3.6.0/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-3.6.0/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)));
277 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | (uint8_t)direction; in USB_DeviceKhciEndpointInit() local
297 khciState->endpointState[index].stateUnion.stateBitField.transferring = 0U; in USB_DeviceKhciEndpointInit()
299 khciState->endpointState[index].stateUnion.stateBitField.maxPacketSize = maxPacketSize; in USB_DeviceKhciEndpointInit()
301 khciState->endpointState[index].stateUnion.stateBitField.data0 = 0U; in USB_DeviceKhciEndpointInit()
303 khciState->endpointState[index].stateUnion.stateBitField.stalled = 0U; in USB_DeviceKhciEndpointInit()
[all …]
Dusb_device_ehci.c224 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | direction; in USB_DeviceEhciEndpointInit() local
249 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.mult = in USB_DeviceEhciEndpointInit()
255 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.mult = 0U; in USB_DeviceEhciEndpointInit()
259 …ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.maxPacketS… in USB_DeviceEhciEndpointInit()
261 ehciState->qh[index].endpointStatusUnion.endpointStatusBitmap.zlt = epInit->zlt; in USB_DeviceEhciEndpointInit()
265 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.zlt = 1U; in USB_DeviceEhciEndpointInit()
270 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.zlt = in USB_DeviceEhciEndpointInit()
277 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.ios = 1U; in USB_DeviceEhciEndpointInit()
285 … ehciState->qh[index].capabilttiesCharacteristicsUnion.capabilttiesCharacteristicsBitmap.ios = 0U; in USB_DeviceEhciEndpointInit()
292 ehciState->qh[index].endpointStatusUnion.endpointStatusBitmap.isOpened = 1U; in USB_DeviceEhciEndpointInit()
[all …]
/hal_nxp-3.6.0/mcux/middleware/mcux-sdk-middleware-usb/host/
Dusb_host_ehci.c735 uint8_t index; in USB_HostEhciSingleStepQtdListInit() local
777 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
779 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
798 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
800 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
1095 uint8_t index; in USB_HostBandwidthHsHostComputeCurrentFsls() local
1099 for (index = 0; index < 8U; ++index) in USB_HostBandwidthHsHostComputeCurrentFsls()
1101 frameBandwidths[index] = 0; in USB_HostBandwidthHsHostComputeCurrentFsls()
1152 for (index = 0; index < 7U; ++index) /* */ in USB_HostBandwidthHsHostComputeCurrentFsls()
1154 if (frameBandwidths[index] > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostComputeCurrentFsls()
[all …]
/hal_nxp-3.6.0/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-3.6.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClEcc/src/
DmcuxClEcc_Internal_PointMult.c41 uint32_t index = scalarBitLen; in MCUX_CSSL_FP_PROTECTED_TYPE() local
49 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
50 scalarWord = pScalar[index / 32u]; in MCUX_CSSL_FP_PROTECTED_TYPE()
51 scalarBits = (scalarWord >> (index & 31u)) & 0x3u; in MCUX_CSSL_FP_PROTECTED_TYPE()
65 if (0u == index) in MCUX_CSSL_FP_PROTECTED_TYPE()
87 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
89 scalarWord = pScalar[index / 32u]; in MCUX_CSSL_FP_PROTECTED_TYPE()
90 scalarBits = (scalarWord >> (index & 31u)) & 0x3u; in MCUX_CSSL_FP_PROTECTED_TYPE()
108 while (0u != index) in MCUX_CSSL_FP_PROTECTED_TYPE()
110 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
[all …]
DmcuxClEcc_Internal_NIST.c81 uint32_t index = scalarBitLen; in MCUX_CSSL_FP_PROTECTED_TYPE() local
89 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
90 scalarWord = pScalar[index / 32u]; in MCUX_CSSL_FP_PROTECTED_TYPE()
91 scalarBits = (scalarWord >> (index & 31u)) & 0x3u; in MCUX_CSSL_FP_PROTECTED_TYPE()
105 if (0u == index) in MCUX_CSSL_FP_PROTECTED_TYPE()
127 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
129 scalarWord = pScalar[index / 32u]; in MCUX_CSSL_FP_PROTECTED_TYPE()
130 scalarBits = (scalarWord >> (index & 31u)) & 0x3u; in MCUX_CSSL_FP_PROTECTED_TYPE()
148 while (0u != index) in MCUX_CSSL_FP_PROTECTED_TYPE()
150 index -= 2u; in MCUX_CSSL_FP_PROTECTED_TYPE()
[all …]
/hal_nxp-3.6.0/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-3.6.0/mcux/mcux-sdk/drivers/dac32/
Dfsl_dac32.c191 void DAC32_SetBufferValue(DAC_Type *base, uint32_t index, uint32_t value) in DAC32_SetBufferValue() argument
193 assert(index < (DAC_DAT_COUNT * 2U)); in DAC32_SetBufferValue()
195 if (0U == (index % 2U)) in DAC32_SetBufferValue()
197 index = index / 2U; /* Register index. */ in DAC32_SetBufferValue()
198 base->DAT[index] = (base->DAT[index] & ~(DAC_DAT_DATA0_MASK)) | DAC_DAT_DATA0(value); in DAC32_SetBufferValue()
202 index = index / 2U; /* Register index. */ in DAC32_SetBufferValue()
203 base->DAT[index] = (base->DAT[index] & ~(DAC_DAT_DATA1_MASK)) | DAC_DAT_DATA1(value); in DAC32_SetBufferValue()
/hal_nxp-3.6.0/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-3.6.0/s32/drivers/s32ze/Icu/src/
DSiul2_Icu_Ip.c343 uint8 index; in Siul2_Icu_Ip_Init() local
374 for(index=0; index < userConfig->numChannels; index++) in Siul2_Icu_Ip_Init()
376 hwChannel = (*userConfig->pChannelsConfig)[index].hwChannel; in Siul2_Icu_Ip_Init()
380 …_Ip_IndexInChState[instance][hwChannel]].callback = (*userConfig->pChannelsConfig)[index].callback; in Siul2_Icu_Ip_Init()
381 …nChState[instance][hwChannel]].callbackParam = (*userConfig->pChannelsConfig)[index].callbackParam; in Siul2_Icu_Ip_Init()
382 …ce][hwChannel]].Siul2ChannelNotification = (*userConfig->pChannelsConfig)[index].Siul2ChannelNotif… in Siul2_Icu_Ip_Init()
384 if ((*userConfig->pChannelsConfig)[index].intEdgeSel != SIUL2_ICU_DISABLE) in Siul2_Icu_Ip_Init()
390 …baseAe->IFMCR[hwChannel] = (uint32)((uint32)(*userConfig->pChannelsConfig)[index].maxFilterCnt & (… in Siul2_Icu_Ip_Init()
392 if ( TRUE == (*userConfig->pChannelsConfig)[index].digFilterEn) in Siul2_Icu_Ip_Init()
401 if (((*userConfig->pChannelsConfig)[index].intEdgeSel == SIUL2_ICU_RISING_EDGE) || in Siul2_Icu_Ip_Init()
[all …]
/hal_nxp-3.6.0/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-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/host/
Ddata_format_hdlc.c105 size_t index = 0; in HDLC_Process_Tx_Msg() local
113 pMsg[index++] = 0x7E; /* Add the Start marker. */ in HDLC_Process_Tx_Msg()
119 pMsg[index++] = 0x7D; in HDLC_Process_Tx_Msg()
120 pMsg[index++] = 0x5D; in HDLC_Process_Tx_Msg()
123 pMsg[index++] = 0x7D; in HDLC_Process_Tx_Msg()
124 pMsg[index++] = 0x5E; in HDLC_Process_Tx_Msg()
127 pMsg[index++] = pBuffer[offset]; in HDLC_Process_Tx_Msg()
130 pMsg[index++] = 0x7E; /* Add the Stop marker. */ in HDLC_Process_Tx_Msg()
132 return index; in HDLC_Process_Tx_Msg()

12345678910>>...19