/hal_nxp-latest/mcux/mcux-sdk/components/adc_sensor/ |
D | fsl_adapter_lpadc_sensor.c | 49 hal_adc_sensor_state_t *state = (hal_adc_sensor_state_t *)handle; in HAL_AdcSensorInit() local 51 assert(state != NULL); in HAL_AdcSensorInit() 61 memset(state, 0, sizeof(hal_adc_sensor_state_t)); in HAL_AdcSensorInit() 62 state->type = config->type; in HAL_AdcSensorInit() 63 state->adc = s_adcBases[config->adcInstance]; in HAL_AdcSensorInit() 64 state->adcTriggered = false; in HAL_AdcSensorInit() 65 state->curConvType = kHAL_AdcSensorConvTypeInvalid; in HAL_AdcSensorInit() 66 memcpy(&state->tsParam, &config->tsParam, sizeof(hal_adc_sensor_ts_param_t)); in HAL_AdcSensorInit() 72 memcpy(&state->config, config->adcInitConfig, sizeof(lpadc_config_t)); in HAL_AdcSensorInit() 76 LPADC_GetDefaultConfig(&state->config); in HAL_AdcSensorInit() [all …]
|
D | fsl_adapter_cns_adc_sensor.c | 49 hal_adc_sensor_state_t *state = (hal_adc_sensor_state_t *)handle; in HAL_AdcSensorInit() local 51 assert(state != NULL); in HAL_AdcSensorInit() 61 memset(state, 0, sizeof(hal_adc_sensor_state_t)); in HAL_AdcSensorInit() 62 state->type = config->type; in HAL_AdcSensorInit() 63 state->adc = s_adcBases[config->adcInstance]; in HAL_AdcSensorInit() 64 state->adcTriggered = false; in HAL_AdcSensorInit() 65 state->curConvType = kHAL_AdcSensorConvTypeInvalid; in HAL_AdcSensorInit() 66 memcpy(&state->tsParam, &config->tsParam, sizeof(hal_adc_sensor_ts_param_t)); in HAL_AdcSensorInit() 72 memcpy(&state->config, config->adcInitConfig, sizeof(adc_config_t)); in HAL_AdcSensorInit() 76 ADC_GetDefaultConfig(&state->config); in HAL_AdcSensorInit() [all …]
|
/hal_nxp-latest/s32/drivers/s32k3/Fls/src/ |
D | Qspi_Ip.c | 165 const Qspi_Ip_StateType *state 181 const Qspi_Ip_StateType *state 185 const Qspi_Ip_StateType *state, 189 static inline uint32 Qspi_Ip_CalcPaddingRead(const Qspi_Ip_StateType *state, 209 const Qspi_Ip_StateType * state = &(Qspi_Ip_MemoryStateStructure[instance]); in Qspi_Ip_InitLutSeq() local 210 const Qspi_Ip_InstrOpType *virtualLutTable = state->configuration->lutSequences.lutOps; in Qspi_Ip_InitLutSeq() 218 DEV_ASSERT_QSPI(vLutIdx < state->configuration->lutSequences.opCount); in Qspi_Ip_InitLutSeq() 224 DEV_ASSERT_QSPI(vLutIdx < state->configuration->lutSequences.opCount); in Qspi_Ip_InitLutSeq() 246 …Qspi_Ip_WriteLuts(state->connection->qspiInstance, FEATURE_QSPI_LUT_SEQUENCE_SIZE * LutRegister, l… in Qspi_Ip_InitLutSeq() 347 const Qspi_Ip_StateType * state = &(Qspi_Ip_MemoryStateStructure[instance]); in Qspi_Ip_UpdateStatusReg() local [all …]
|
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/output/source/device/ |
D | usb_device_ch9.c | 125 uint8_t state = 0U; in USB_DeviceCh9GetStatus() local 133 …atus_USB_Success != USB_DeviceGetStatus(classHandle->handle, kUSB_DeviceStatusDeviceState, &state)) in USB_DeviceCh9GetStatus() 138 (void)USB_DeviceGetStatus(classHandle->handle, kUSB_DeviceStatusDeviceState, &state); in USB_DeviceCh9GetStatus() 141 … if (((uint8_t)kUSB_DeviceStateAddress != state) && ((uint8_t)kUSB_DeviceStateConfigured != state)) in USB_DeviceCh9GetStatus() 174 if (((uint8_t)kUSB_DeviceStateAddress == state) || in USB_DeviceCh9GetStatus() 175 (((uint8_t)kUSB_DeviceStateConfigured == state) && (0U == setup->wIndex))) in USB_DeviceCh9GetStatus() 192 ((uint8_t)kUSB_DeviceStateAddress == state)) in USB_DeviceCh9GetStatus() 238 uint8_t state = 0U; in USB_DeviceCh9SetClearFeature() local 246 …atus_USB_Success != USB_DeviceGetStatus(classHandle->handle, kUSB_DeviceStatusDeviceState, &state)) in USB_DeviceCh9SetClearFeature() 251 (void)USB_DeviceGetStatus(classHandle->handle, kUSB_DeviceStatusDeviceState, &state); in USB_DeviceCh9SetClearFeature() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/DSP/Source/FilteringFunctions/ |
D | arm_biquad_cascade_df2T_f16.c | 67 f16x8_t state; /* State vector */ in arm_biquad_cascade_df2T_f16() local 86 state = *(f16x8_t *) pState; in arm_biquad_cascade_df2T_f16() 87 state = vsetq_lane((float16_t)0.0, state, 2); in arm_biquad_cascade_df2T_f16() 88 state = vsetq_lane((float16_t)0.0, state, 3); in arm_biquad_cascade_df2T_f16() 116 state = vfmaq(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f16() 117 acc0 = vgetq_lane(state, 0); in arm_biquad_cascade_df2T_f16() 118 state = vfmaq(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f16() 119 state = vsetq_lane((float16_t)0.0, state, 3); in arm_biquad_cascade_df2T_f16() 133 state = vfmaq(state, b1Coeffs, Xn1); in arm_biquad_cascade_df2T_f16() 134 acc1 = vgetq_lane(state, 1); in arm_biquad_cascade_df2T_f16() [all …]
|
D | arm_biquad_cascade_df2T_f32.c | 67 f32x4_t state; /* State vector */ in arm_biquad_cascade_df2T_f32() local 86 state = *(f32x4_t *) pState; in arm_biquad_cascade_df2T_f32() 87 state = vsetq_lane(0.0f, state, 2); in arm_biquad_cascade_df2T_f32() 88 state = vsetq_lane(0.0f, state, 3); in arm_biquad_cascade_df2T_f32() 114 state = vfmaq(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f32() 115 acc0 = vgetq_lane(state, 0); in arm_biquad_cascade_df2T_f32() 116 state = vfmaq(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f32() 117 state = vsetq_lane(0.0f, state, 3); in arm_biquad_cascade_df2T_f32() 128 state = vfmaq(state, b1Coeffs, Xn1); in arm_biquad_cascade_df2T_f32() 129 acc1 = vgetq_lane(state, 1); in arm_biquad_cascade_df2T_f32() [all …]
|
/hal_nxp-latest/s32/drivers/s32ze/Can_CANEXCEL/src/ |
D | CanEXCEL_Ip.c | 52 static void ValidateFrameDLC(uint8 instance,uint32 mb_idx, Canexcel_Ip_StateType * state); 54 static void Canexcel_CompleteTxBuffers(uint8 instance,uint32 mb_idx, Canexcel_Ip_StateType * state); 60 static void Canexcel_ProcessErrIRQ(uint8 instance,const Canexcel_Ip_StateType * state, uint32 bcanX… 176 Canexcel_Ip_StateType * state = Canexcel_Ip_apxState[instance]; in Canexcel_GetControllerMRU() local 197 state->u8MruMailboxAct &= (uint8)(~(1U<<CANXL_MRU_MBOX3)); in Canexcel_GetControllerMRU() 201 while ((state->u8MruMailboxAct & (1U<<CANXL_MRU_MBOX3)) == 0U) in Canexcel_GetControllerMRU() 210 if ((state->u8MruMailboxAct & (1U<<CANXL_MRU_MBOX3)) == (1U<<CANXL_MRU_MBOX3)) in Canexcel_GetControllerMRU() 227 Canexcel_Ip_StateType * state = Canexcel_Ip_apxState[instance]; in Canexcel_Ip_MainFunction() local 234 if ((NULL_PTR != state) && (mb_idx <= total_mb)) in Canexcel_Ip_MainFunction() 256 if (CurrentHwIdx > (state->msgDesc[mb_idx].lastHwIdex)) in Canexcel_Ip_MainFunction() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/DSP/Include/dsp/ |
D | controller_functions.h | 166 q15_t state[3]; /**< The state array of length 3. */ member 180 q31_t state[3]; /**< The state array of length 3. */ member 194 float32_t state[3]; /**< The state array of length 3. */ member 277 (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); in arm_pid_f32() 280 S->state[1] = S->state[0]; in arm_pid_f32() 281 S->state[0] = in; in arm_pid_f32() 282 S->state[2] = out; in arm_pid_f32() 313 acc += (q63_t) S->A1 * S->state[0]; in arm_pid_q31() 316 acc += (q63_t) S->A2 * S->state[1]; in arm_pid_q31() 322 out += S->state[2]; in arm_pid_q31() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_i2c/ |
D | fsl_i2c_dma.c | 103 handle->state = (uint8_t)kStopState; in I2C_InitTransferStateMachineDMA() 107 handle->state = (uint8_t)kTransmitDataState; in I2C_InitTransferStateMachineDMA() 111 …handle->state = (xfer->dataSize == 1U) ? (uint8_t)kReceiveLastDataState : (uint8_t)kReceiveDataSta… in I2C_InitTransferStateMachineDMA() 140 handle->state = (uint8_t)kStartState; in I2C_InitTransferStateMachineDMA() 252 handle->state = (uint8_t)kWaitForCompletionState; in I2C_RunTransferStateMachineDMA() 258 if (handle->state == (uint8_t)kStartState) in I2C_RunTransferStateMachineDMA() 266 handle->state = (uint8_t)kTransmitSubaddrState; in I2C_RunTransferStateMachineDMA() 275 handle->state = (uint8_t)kStopState; in I2C_RunTransferStateMachineDMA() 278 handle->state = (uint8_t)kTransmitDataState; in I2C_RunTransferStateMachineDMA() 287 handle->state = (uint8_t)kReceiveLastDataState; in I2C_RunTransferStateMachineDMA() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/powerquad/ |
D | fsl_powerquad_filter.c | 190 …id PQ_BiquadBackUpInternalState(POWERQUAD_Type *base, int32_t biquad_num, pq_biquad_state_t *state) in PQ_BiquadBackUpInternalState() argument 204 state->param.v_n_1 = v_n_1.floatX; in PQ_BiquadBackUpInternalState() 205 state->param.v_n = v_n.floatX; in PQ_BiquadBackUpInternalState() 206 state->compreg = base->COMPREG[1]; in PQ_BiquadBackUpInternalState() 213 state->param.v_n_1 = v_n_1.floatX; in PQ_BiquadBackUpInternalState() 214 state->param.v_n = v_n.floatX; in PQ_BiquadBackUpInternalState() 215 state->compreg = base->COMPREG[3]; in PQ_BiquadBackUpInternalState() 222 …d PQ_BiquadRestoreInternalState(POWERQUAD_Type *base, int32_t biquad_num, pq_biquad_state_t *state) in PQ_BiquadRestoreInternalState() argument 234 v_n_1.floatX = state->param.v_n_1; in PQ_BiquadRestoreInternalState() 235 v_n.floatX = state->param.v_n; in PQ_BiquadRestoreInternalState() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/i2c/ |
D | fsl_i2c_dma.c | 105 handle->state = (uint8_t)kStopState; in I2C_InitTransferStateMachineDMA() 109 handle->state = (uint8_t)kTransmitDataState; in I2C_InitTransferStateMachineDMA() 113 …handle->state = (xfer->dataSize == 1U) ? (uint8_t)kReceiveLastDataState : (uint8_t)kReceiveDataSta… in I2C_InitTransferStateMachineDMA() 142 handle->state = (uint8_t)kStartState; in I2C_InitTransferStateMachineDMA() 269 handle->state = (uint8_t)kWaitForCompletionState; in I2C_RunTransferStateMachineDMA() 282 if (handle->state == (uint8_t)kStartState) in I2C_RunTransferStateMachineDMA() 290 handle->state = (uint8_t)kTransmitSubaddrState; in I2C_RunTransferStateMachineDMA() 299 handle->state = (uint8_t)kStopState; in I2C_RunTransferStateMachineDMA() 302 handle->state = (uint8_t)kTransmitDataState; in I2C_RunTransferStateMachineDMA() 311 handle->state = (uint8_t)kReceiveLastDataState; in I2C_RunTransferStateMachineDMA() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/spc/ |
D | fsl_spc.c | 149 uint32_t state; in SPC_SetActiveModeBandgapModeConfig() local 155 state = SPC_GetActiveModeVoltageDetectStatus(base); in SPC_SetActiveModeBandgapModeConfig() 158 if (state != 0UL) in SPC_SetActiveModeBandgapModeConfig() 242 uint32_t state; in SPC_SetLowPowerModeBandgapmodeConfig() local 248 state = (uint32_t)SPC_GetLowPowerModeVoltageDetectStatus(base); in SPC_SetLowPowerModeBandgapmodeConfig() 251 if (state != 0UL) in SPC_SetLowPowerModeBandgapmodeConfig() 803 uint32_t state; in SPC_SetActiveModeCoreLDORegulatorConfig() local 816 state = SPC_GetActiveModeVoltageDetectStatus(base); in SPC_SetActiveModeCoreLDORegulatorConfig() 817 if (state != 0UL) in SPC_SetActiveModeCoreLDORegulatorConfig() 869 uint32_t state; in SPC_SetLowPowerModeCoreLDORegulatorConfig() local [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/flexcomm/ |
D | fsl_usart_cmsis.c | 288 static int32_t USART_DmaPowerControl(ARM_POWER_STATE state, cmsis_usart_dma_driver_state_t *usart) in USART_DmaPowerControl() argument 293 switch (state) in USART_DmaPowerControl() 578 static int32_t USART_NonBlockingPowerControl(ARM_POWER_STATE state, cmsis_usart_non_blocking_driver… in USART_NonBlockingPowerControl() argument 583 switch (state) in USART_NonBlockingPowerControl() 847 static int32_t USART0_DmaPowerControl(ARM_POWER_STATE state) in USART0_DmaPowerControl() argument 849 return USART_DmaPowerControl(state, &usart0_DmaDriverState); in USART0_DmaPowerControl() 922 static int32_t USART0_NonBlockingPowerControl(ARM_POWER_STATE state) in USART0_NonBlockingPowerControl() argument 926 result = USART_NonBlockingPowerControl(state, &usart0_NonBlockingDriverState); in USART0_NonBlockingPowerControl() 928 if ((state == ARM_POWER_FULL) && (usart0_NonBlockingDriverState.handle->rxRingBuffer == NULL)) in USART0_NonBlockingPowerControl() 1055 static int32_t USART1_DmaPowerControl(ARM_POWER_STATE state) in USART1_DmaPowerControl() argument [all …]
|
D | fsl_i2c_cmsis.c | 171 if (i2c->master_dma_handle->state != 0U) in I2C_Master_DmaTransmit() 214 if (i2c->master_dma_handle->state != 0U) in I2C_Master_DmaReceive() 306 static int32_t I2C_Master_DmaPowerControl(ARM_POWER_STATE state, cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaPowerControl() argument 309 switch (state) in I2C_Master_DmaPowerControl() 459 if (i2c->handle->master_handle.state != 0U) in I2C_Master_InterruptTransmit() 508 if (i2c->handle->master_handle.state != 0U) in I2C_Master_InterruptReceive() 713 static int32_t I2C_InterruptPowerControl(ARM_POWER_STATE state, cmsis_i2c_interrupt_driver_state_t … in I2C_InterruptPowerControl() argument 716 switch (state) in I2C_InterruptPowerControl() 832 static int32_t I2C0_Master_DmaPowerControl(ARM_POWER_STATE state) in I2C0_Master_DmaPowerControl() argument 834 return I2C_Master_DmaPowerControl(state, &I2C0_DmaDriverState); in I2C0_Master_DmaPowerControl() [all …]
|
D | fsl_spi_cmsis.c | 526 static int32_t SPI_DMAPowerControl(ARM_POWER_STATE state, cmsis_spi_dma_driver_state_t *spi) in SPI_DMAPowerControl() argument 529 switch (state) in SPI_DMAPowerControl() 902 … stat.data_lost = ((uint8_t)kStatus_SPI_Error == spi->handle->masterHandle.state) ? (1U) : (0U); in SPI_DMAGetStatus() 910 … stat.data_lost = ((uint8_t)kStatus_SPI_Error == spi->handle->slaveHandle.state) ? (1U) : (0U); in SPI_DMAGetStatus() 998 static int32_t SPI_InterruptPowerControl(ARM_POWER_STATE state, cmsis_spi_interrupt_driver_state_t … in SPI_InterruptPowerControl() argument 1001 switch (state) in SPI_InterruptPowerControl() 1351 … stat.data_lost = ((uint8_t)kStatus_SPI_Error == spi->handle->masterHandle.state) ? (1U) : (0U); in SPI_InterruptGetStatus() 1359 … stat.data_lost = ((uint8_t)kStatus_SPI_Error == spi->handle->slaveHandle.state) ? (1U) : (0U); in SPI_InterruptGetStatus() 1414 static int32_t SPI0_DMAPowerControl(ARM_POWER_STATE state) in SPI0_DMAPowerControl() argument 1416 return SPI_DMAPowerControl(state, &SPI0_DMADriverState); in SPI0_DMAPowerControl() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexio/mculcd/ |
D | fsl_flexio_mculcd_edma.c | 102 if ((uint32_t)kFLEXIO_MCULCD_StateWriteSameValue == flexioLcdMcuHandle->state) in FLEXIO_MCULCD_TxEDMACallback() 119 flexioLcdMcuHandle->state = (uint32_t)kFLEXIO_MCULCD_StateIdle; in FLEXIO_MCULCD_TxEDMACallback() 190 flexioLcdMcuHandle->state = (uint32_t)kFLEXIO_MCULCD_StateIdle; in FLEXIO_MCULCD_RxEDMACallback() 223 if ((uint32_t)kFLEXIO_MCULCD_StateReadArray == handle->state) in FLEXIO_MCULCD_EDMAConfig() 235 if ((uint32_t)kFLEXIO_MCULCD_StateReadArray == handle->state) in FLEXIO_MCULCD_EDMAConfig() 253 if ((uint32_t)kFLEXIO_MCULCD_StateWriteArray == handle->state) in FLEXIO_MCULCD_EDMAConfig() 334 handle->state = (uint32_t)kFLEXIO_MCULCD_StateIdle; in FLEXIO_MCULCD_TransferCreateHandleEDMA() 412 if ((uint32_t)kFLEXIO_MCULCD_StateIdle != handle->state) in FLEXIO_MCULCD_TransferEDMA() 420 handle->state = (uint32_t)kFLEXIO_MCULCD_StateReadArray; in FLEXIO_MCULCD_TransferEDMA() 429 handle->state = (uint32_t)kFLEXIO_MCULCD_StateWriteArray; in FLEXIO_MCULCD_TransferEDMA() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/lpuart/ |
D | fsl_lpuart_cmsis.c | 552 static int32_t LPUART_DmaPowerControl(ARM_POWER_STATE state, cmsis_lpuart_dma_driver_state_t *lpuar… in LPUART_DmaPowerControl() argument 558 switch (state) in LPUART_DmaPowerControl() 831 static int32_t LPUART_EdmaPowerControl(ARM_POWER_STATE state, cmsis_lpuart_edma_driver_state_t *lpu… in LPUART_EdmaPowerControl() argument 836 switch (state) in LPUART_EdmaPowerControl() 1120 static int32_t LPUART_NonBlockingPowerControl(ARM_POWER_STATE state, cmsis_lpuart_non_blocking_driv… in LPUART_NonBlockingPowerControl() argument 1125 switch (state) in LPUART_NonBlockingPowerControl() 1383 static int32_t LPUART0_DmaPowerControl(ARM_POWER_STATE state) in LPUART0_DmaPowerControl() argument 1385 return LPUART_DmaPowerControl(state, &LPUART0_DmaDriverState); in LPUART0_DmaPowerControl() 1466 static int32_t LPUART0_EdmaPowerControl(ARM_POWER_STATE state) in LPUART0_EdmaPowerControl() argument 1468 return LPUART_EdmaPowerControl(state, &LPUART0_EdmaDriverState); in LPUART0_EdmaPowerControl() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/i2s/ |
D | fsl_i2s_dma.c | 174 if (handle->state != (uint32_t)kI2S_DmaStateIdle) in I2S_EnableDMAInterrupts() 202 handle->state = (uint32_t)kI2S_DmaStateIdle; in I2S_TxTransferCreateHandleDMA() 253 if (handle->state == (uint32_t)kI2S_DmaStateIdle) in I2S_TxTransferSendDMA() 255 handle->state = (uint32_t)kI2S_DmaStateTx; in I2S_TxTransferSendDMA() 289 if (handle->state == (uint32_t)kI2S_DmaStateTx) in I2S_TransferAbortDMA() 303 handle->state = (uint32_t)kI2S_DmaStateIdle; in I2S_TransferAbortDMA() 365 if (handle->state == (uint32_t)kI2S_DmaStateIdle) in I2S_RxTransferReceiveDMA() 367 handle->state = (uint32_t)kI2S_DmaStateRx; in I2S_RxTransferReceiveDMA() 478 if (handle->state == (uint32_t)kI2S_DmaStateBusyLoopTransfer) in I2S_TransferLoopDMA() 494 if (handle->state == (uint32_t)kI2S_DmaStateTx) in I2S_TransferLoopDMA() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/i3c/ |
D | fsl_i3c_edma.c | 157 handle->state = (uint8_t)kStopState; in I3C_MasterInitTransferStateMachineEDMA() 192 handle->state = (uint8_t)kSendCommandState; in I3C_MasterInitTransferStateMachineEDMA() 199 handle->state = (uint8_t)kTransmitDataState; in I3C_MasterInitTransferStateMachineEDMA() 212 handle->state = (uint8_t)kSendCommandState; in I3C_MasterInitTransferStateMachineEDMA() 218 handle->state = (uint8_t)kTransmitDataState; in I3C_MasterInitTransferStateMachineEDMA() 222 handle->state = (uint8_t)kReceiveDataState; in I3C_MasterInitTransferStateMachineEDMA() 235 if (handle->state != (uint8_t)kStopState) in I3C_MasterInitTransferStateMachineEDMA() 350 handle->state = (uint8_t)kSlaveStartState; in I3C_MasterRunTransferStateMachineEDMA() 355 handle->state = (uint8_t)kIBIWonState; in I3C_MasterRunTransferStateMachineEDMA() 358 if (handle->state == (uint8_t)kIdleState) in I3C_MasterRunTransferStateMachineEDMA() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/power_manager/ |
D | README.md | 16 …ON, retention (for memories) or OFF can be defined for each MCU low-power state, peripheral, memor… 43 - Gather constraints and/or find the lowest-power state achievable depending on user constraints or… 44 …state to enter and the resource constraints. If the resource constraints or timing do not match th… 45 …- The user is only required to specify the low-power state to enter. All the possible resources sa… 46 …source constraints. The SDK Power Manager will find the deepest low-power state to enter that sati… 56 - The policy module: gathers all constraints and finds the deepest power state allowed. 60 …tead, the application defines the resource constraints to keep enabled for a given low-power state. 72 …ill be called just before the entry to low-power state and just after the exit from the low-power … 78 … constraints to Power Manager defined by the user, and/or for a low-power state. To easily define … 82 …d the ideal low-power state available, based on registered constraints, then notifies groups, and … [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/ii2c/ |
D | fsl_i2c.c | 197 handle->state = (uint8_t)kCheckAddressState; in I2C_InitTransferStateMachine() 208 handle->state = (uint8_t)kSendCommandState; in I2C_InitTransferStateMachine() 215 handle->state = (uint8_t)kSendDataState; in I2C_InitTransferStateMachine() 278 …bool ignoreNak = ((handle->state == (uint8_t)kSendDataState) && (handle->transfer.dataSize… in I2C_MasterTransferRunStateMachine() 279 … ((handle->state == (uint8_t)kReceiveDataState) && (handle->transfer.dataSize == 1U)); in I2C_MasterTransferRunStateMachine() 295 if (handle->state == (uint8_t)kCheckAddressState) in I2C_MasterTransferRunStateMachine() 305 handle->state = (uint8_t)kSendCommandState; in I2C_MasterTransferRunStateMachine() 312 handle->state = (uint8_t)kSendDataState; in I2C_MasterTransferRunStateMachine() 317 handle->state = (uint8_t)kReceiveDataBeginState; in I2C_MasterTransferRunStateMachine() 329 switch (handle->state) in I2C_MasterTransferRunStateMachine() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/uart/ |
D | fsl_uart_cmsis.c | 505 static int32_t UART_DmaPowerControl(ARM_POWER_STATE state, cmsis_uart_dma_driver_state_t *uart) in UART_DmaPowerControl() argument 511 switch (state) in UART_DmaPowerControl() 775 static int32_t UART_EdmaPowerControl(ARM_POWER_STATE state, cmsis_uart_edma_driver_state_t *uart) in UART_EdmaPowerControl() argument 781 switch (state) in UART_EdmaPowerControl() 1060 static int32_t UART_NonBlockingPowerControl(ARM_POWER_STATE state, cmsis_uart_interrupt_driver_stat… in UART_NonBlockingPowerControl() argument 1065 switch (state) in UART_NonBlockingPowerControl() 1322 static int32_t UART0_DmaPowerControl(ARM_POWER_STATE state) 1324 return UART_DmaPowerControl(state, &uart0_DmaDriverState); 1401 static int32_t UART0_EdmaPowerControl(ARM_POWER_STATE state) 1403 return UART_EdmaPowerControl(state, &uart0_EdmaDriverState); [all …]
|
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/host/ |
D | usb_host_devices.c | 233 if (s_EnumEntries[deviceInstance->state - 1U].process == NULL) in USB_HostEnumerationTransferCallback() 235 …deviceInstance->state = (uint8_t)s_EnumEntries[deviceInstance->state - 1U].successState; /* next s… in USB_HostEnumerationTransferCallback() 239 status = s_EnumEntries[deviceInstance->state - 1U].process( in USB_HostEnumerationTransferCallback() 243 … deviceInstance->state = (uint8_t)s_EnumEntries[deviceInstance->state - 1U].successState; in USB_HostEnumerationTransferCallback() 247 … deviceInstance->state = (uint8_t)s_EnumEntries[deviceInstance->state - 1U].retryState; in USB_HostEnumerationTransferCallback() 269 deviceInstance->state = (uint8_t)kStatus_DEV_GetDes8; in USB_HostEnumerationTransferCallback() 305 usb_host_device_enumeration_status_t state; in USB_HostProcessState() local 308 state = (usb_host_device_enumeration_status_t)deviceInstance->state; in USB_HostProcessState() 309 if (state != kStatus_DEV_EnumDone) in USB_HostProcessState() 328 switch (state) in USB_HostProcessState() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/lpspi/ |
D | fsl_lpspi_cmsis.c | 525 static int32_t LPSPI_EdmaPowerControl(ARM_POWER_STATE state, cmsis_lpspi_edma_driver_state_t *lpspi) in LPSPI_EdmaPowerControl() argument 530 switch (state) in LPSPI_EdmaPowerControl() 859 stat.busy = ((uint8_t)kLPSPI_Busy == lpspi->handle->masterHandle.state) ? (1U) : (0U); in LPSPI_EdmaGetStatus() 860 stat.data_lost = ((uint8_t)kLPSPI_Error == lpspi->handle->masterHandle.state) ? (1U) : (0U); in LPSPI_EdmaGetStatus() 864 stat.busy = ((uint8_t)kLPSPI_Busy == lpspi->handle->slaveHandle.state) ? (1U) : (0U); in LPSPI_EdmaGetStatus() 865 stat.data_lost = ((uint8_t)kLPSPI_Error == lpspi->handle->slaveHandle.state) ? (1U) : (0U); in LPSPI_EdmaGetStatus() 949 static int32_t LPSPI_InterruptPowerControl(ARM_POWER_STATE state, cmsis_lpspi_interrupt_driver_stat… in LPSPI_InterruptPowerControl() argument 952 switch (state) in LPSPI_InterruptPowerControl() 1254 stat.busy = ((uint8_t)kLPSPI_Busy == lpspi->handle->masterHandle.state) ? (1U) : (0U); in LPSPI_InterruptGetStatus() 1255 stat.data_lost = ((uint8_t)kLPSPI_Error == lpspi->handle->masterHandle.state) ? (1U) : (0U); in LPSPI_InterruptGetStatus() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/spifi/ |
D | fsl_spifi_dma.c | 136 handle->state = kSPIFI_Idle; in SPIFI_TransferTxCreateHandleDMA() 170 handle->state = kSPIFI_Idle; in SPIFI_TransferRxCreateHandleDMA() 197 if ((uint32_t)kSPIFI_BusBusy == handle->state) in SPIFI_TransferSendDMA() 203 handle->state = kSPIFI_BusBusy; in SPIFI_TransferSendDMA() 239 if ((uint32_t)kSPIFI_BusBusy == handle->state) in SPIFI_TransferReceiveDMA() 245 handle->state = kSPIFI_BusBusy; in SPIFI_TransferReceiveDMA() 283 handle->state = kSPIFI_Idle; in SPIFI_TransferAbortSendDMA() 305 handle->state = kSPIFI_Idle; in SPIFI_TransferAbortReceiveDMA() 324 if (handle->state != (uint32_t)kSPIFI_BusBusy) in SPIFI_TransferGetSendCountDMA() 352 if (handle->state != (uint32_t)kSPIFI_BusBusy) in SPIFI_TransferGetReceiveCountDMA()
|