Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/device/
Dusb_device_khci.h41 #define USB_KHCI_BDT_SET_ADDRESS(bdt_base, ep, direction, odd, address) \ argument
43 (((uint32_t)(direction)&1U) << 4U) | (((uint32_t)(odd)&1U) << 3U)) >> \
48 #define USB_KHCI_BDT_SET_CONTROL(bdt_base, ep, direction, odd, control) \ argument
50 (((uint32_t)(direction)&1U) << 4U) | (((uint32_t)(odd)&1U) << 3U)) >> \
54 #define USB_KHCI_BDT_GET_ADDRESS(bdt_base, ep, direction, odd) … argument
56 … (((uint32_t)(direction)&1U) << 4U) | (((uint32_t)(odd)&1U) << 3U)) >> \
61 #define USB_KHCI_BDT_GET_CONTROL(bdt_base, ep, direction, odd) \ argument
63 (((uint32_t)(direction)&1U) << 4U) | (((uint32_t)(odd)&1U) << 3U)) >> \
67 #define USB_KHCI_BDT_SET_ADDRESS(bdt_base, ep, direction, odd, address) \ argument
69 (((uint32_t)(direction)&1U) << 4U) | (((uint32_t)(odd)&1U) << 3U)) + \
[all …]
Dusb_device_khci.c47 …usb_device_khci_state_struct_t *khciState, uint8_t endpoint, uint8_t direction, uint8_t *buffer, u…
109 …usb_device_khci_state_struct_t *khciState, uint8_t endpoint, uint8_t direction, uint8_t *buffer, u…
111 uint32_t index = ((uint32_t)endpoint << 1U) | (uint32_t)direction;
121 USB_KHCI_BDT_SET_ADDRESS((uint32_t)khciState->bdt, endpoint, direction,
126 …(uint32_t)khciState->bdt, endpoint, direction, khciState->endpointState[index].stateUnion.stateBit…
275 …uint8_t direction = (epInit->endpointAddress & USB_DESCRIPTOR_ENDPOINT_ADDRESS_DIRECTION_MASK… in USB_DeviceKhciEndpointInit() local
277 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | (uint8_t)direction; in USB_DeviceKhciEndpointInit()
308 (USB_IN == direction) ? USB_ENDPT_EPTXEN_MASK : USB_ENDPT_EPRXEN_MASK; in USB_DeviceKhciEndpointInit()
313 if (USB_IN == direction) in USB_DeviceKhciEndpointInit()
360 if ((USB_CONTROL_ENDPOINT == endpoint) && (USB_OUT == direction)) in USB_DeviceKhciEndpointInit()
[all …]
Dusb_device_dci.c269 uint8_t direction = (endpointAddress & USB_DESCRIPTOR_ENDPOINT_ADDRESS_DIRECTION_MASK) >> in USB_DeviceTransfer() local
280 if (0U != deviceHandle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].isBusy) in USB_DeviceTransfer()
285 deviceHandle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].isBusy = 1U; in USB_DeviceTransfer()
316 deviceHandle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].isBusy = 0U; in USB_DeviceTransfer()
592 uint8_t direction = (message->code & USB_DESCRIPTOR_ENDPOINT_ADDRESS_DIRECTION_MASK) >> in USB_DeviceNotification() local
638 … if (NULL != handle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].callbackFn) in USB_DeviceNotification()
651 … handle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].isBusy = 0U; in USB_DeviceNotification()
654 … status = handle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].callbackFn( in USB_DeviceNotification()
656 … handle->epCallback[(uint8_t)((uint32_t)endpoint << 1U) | direction].callbackParam); in USB_DeviceNotification()
1067 uint8_t direction; in USB_DeviceInitEndpoint() local
[all …]
Dusb_device_ehci.c60 uint8_t direction);
222 …uint8_t direction = (epInit->endpointAddress & USB_DESCRIPTOR_ENDPOINT_ADDRESS_DIRECTION_MASK… in USB_DeviceEhciEndpointInit() local
224 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | direction; in USB_DeviceEhciEndpointInit()
279 ((0U != direction) ? in USB_DeviceEhciEndpointInit()
287 ((0U != direction) ? in USB_DeviceEhciEndpointInit()
312 uint8_t direction = in USB_DeviceEhciEndpointDeinit() local
314 uint8_t index = ((uint8_t)((uint32_t)endpoint << 1U)) | direction; in USB_DeviceEhciEndpointDeinit()
339 … ~((0U != direction) ? (USBHS_EPCR_TXE_MASK | USBHS_EPCR_TXT_MASK | USBHS_EPCR_TXS_MASK) : in USB_DeviceEhciEndpointDeinit()
345 … ~((0U != direction) ? (USBHS_EPCR_TXE_MASK | USBHS_EPCR_TXT_MASK | USBHS_EPCR_TXS_MASK) : in USB_DeviceEhciEndpointDeinit()
366 uint8_t direction = in USB_DeviceEhciEndpointStall() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/isi_qmc_dgc/project_template/cm7/
Dpin_mux.c831 .direction = kGPIO_DigitalOutput, in BOARD_InitPowerStageSPIsPins()
840 .direction = kGPIO_DigitalOutput, in BOARD_InitPowerStageSPIsPins()
849 .direction = kGPIO_DigitalOutput, in BOARD_InitPowerStageSPIsPins()
858 .direction = kGPIO_DigitalOutput, in BOARD_InitPowerStageSPIsPins()
973 .direction = kGPIO_DigitalInput, in BOARD_InitTsnEnet1GPins()
982 .direction = kGPIO_DigitalOutput, in BOARD_InitTsnEnet1GPins()
1463 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1474 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1485 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1496 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexio/spi/
Dfsl_flexio_spi.c82 if (handle->direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_TransferSendTransaction()
96 if (handle->direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_TransferSendTransaction()
120 FLEXIO_SPI_WriteData(base, handle->direction, tmpData); in FLEXIO_SPI_TransferSendTransaction()
132 tmpData = FLEXIO_SPI_ReadData(base, handle->direction); in FLEXIO_SPI_TransferReceiveTransaction()
142 if (handle->direction == kFLEXIO_SPI_LsbFirst) in FLEXIO_SPI_TransferReceiveTransaction()
157 if (handle->direction == kFLEXIO_SPI_LsbFirst) in FLEXIO_SPI_TransferReceiveTransaction()
711 flexio_spi_shift_direction_t direction, in FLEXIO_SPI_WriteBlocking() argument
740 FLEXIO_SPI_WriteData(base, direction, *buffer++); in FLEXIO_SPI_WriteBlocking()
760 flexio_spi_shift_direction_t direction, in FLEXIO_SPI_ReadBlocking() argument
789 *buffer++ = (uint8_t)FLEXIO_SPI_ReadData(base, direction); in FLEXIO_SPI_ReadBlocking()
[all …]
Dfsl_flexio_spi.h189 flexio_spi_shift_direction_t direction; /*!< Shift direction. */ member
414 flexio_spi_shift_direction_t direction) in FLEXIO_SPI_GetTxDataRegisterAddress() argument
416 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_GetTxDataRegisterAddress()
438 flexio_spi_shift_direction_t direction) in FLEXIO_SPI_GetRxDataRegisterAddress() argument
440 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_GetRxDataRegisterAddress()
491 … FLEXIO_SPI_WriteData(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction, uint32_t data) in FLEXIO_SPI_WriteData() argument
493 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_WriteData()
513 … inline uint32_t FLEXIO_SPI_ReadData(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction) in FLEXIO_SPI_ReadData() argument
515 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_ReadData()
538 flexio_spi_shift_direction_t direction,
[all …]
Dfsl_flexio_spi_edma.c132 flexio_spi_shift_direction_t direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_EDMAConfig() local
141 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_EDMAConfig()
145 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_EDMAConfig()
149 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_EDMAConfig()
153 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_EDMAConfig()
157 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_EDMAConfig()
161 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_EDMAConfig()
165 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_EDMAConfig()
180 xferConfig.destAddr = FLEXIO_SPI_GetTxDataRegisterAddress(base, direction); in FLEXIO_SPI_EDMAConfig()
190 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_EDMAConfig()
[all …]
Dfsl_flexio_spi_dma.c130 flexio_spi_shift_direction_t direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_DMAConfig() local
139 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_DMAConfig()
143 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_DMAConfig()
147 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_DMAConfig()
151 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_DMAConfig()
155 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_DMAConfig()
159 direction = kFLEXIO_SPI_LsbFirst; in FLEXIO_SPI_DMAConfig()
163 direction = kFLEXIO_SPI_MsbFirst; in FLEXIO_SPI_DMAConfig()
178 xferConfig.destAddr = FLEXIO_SPI_GetTxDataRegisterAddress(base, direction); in FLEXIO_SPI_DMAConfig()
187 if (direction == kFLEXIO_SPI_MsbFirst) in FLEXIO_SPI_DMAConfig()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/boards/isi_qmc_dgc/project_template/cm4/
Dpin_mux.c746 .direction = kGPIO_DigitalOutput, in BOARD_InitTsnEnet1GPins()
1218 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1229 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1240 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1251 .direction = kGPIO_DigitalInput, in BOARD_InitUserButtonsPins()
1369 .direction = kGPIO_DigitalOutput, in BOARD_InitSecureI2cPins()
1452 .direction = kGPIO_DigitalOutput, in BOARD_InitDigitalOutputPins()
1461 .direction = kGPIO_DigitalOutput, in BOARD_InitDigitalOutputPins()
1470 .direction = kGPIO_DigitalOutput, in BOARD_InitDigitalOutputPins()
1479 .direction = kGPIO_DigitalOutput, in BOARD_InitDigitalOutputPins()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/i2c/
Dfsl_i2c_dma.c101 if (i2cPrivateHandle->handle->transfer.direction == kI2C_Read) in I2C_MasterTransferCallbackDMA()
131 if (i2cPrivateHandle->handle->transfer.direction == kI2C_Read) in I2C_MasterTransferCallbackDMA()
191 i2c_direction_t direction = xfer->direction; in I2C_InitTransferStateMachineDMA() local
215 if ((xfer->subaddressSize > 0U) && (xfer->direction == kI2C_Read)) in I2C_InitTransferStateMachineDMA()
217 direction = kI2C_Write; in I2C_InitTransferStateMachineDMA()
223 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachineDMA()
227 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachineDMA()
310 if (handle->transfer.direction == kI2C_Read) in I2C_InitTransferStateMachineDMA()
361 if (handle->transfer.direction == kI2C_Read) in I2C_MasterTransferDMAConfig()
473 if (handle->transfer.direction == kI2C_Read) in I2C_MasterTransferDMA()
[all …]
Dfsl_i2c_edma.c101 if (i2cPrivateHandle->handle->transfer.direction == kI2C_Read) in I2C_MasterTransferCallbackEDMA()
132 if (i2cPrivateHandle->handle->transfer.direction == kI2C_Read) in I2C_MasterTransferCallbackEDMA()
200 i2c_direction_t direction = xfer->direction; in I2C_InitTransferStateMachineEDMA() local
214 if ((xfer->subaddressSize > 0U) && (0U != (uint8_t)(xfer->direction == kI2C_Read))) in I2C_InitTransferStateMachineEDMA()
216 direction = kI2C_Write; in I2C_InitTransferStateMachineEDMA()
222 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachineEDMA()
226 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachineEDMA()
312 if (handle->transfer.direction == kI2C_Read) in I2C_InitTransferStateMachineEDMA()
363 if (handle->transfer.direction == kI2C_Read) in I2C_MasterTransferEDMAConfig()
480 if (handle->transfer.direction == kI2C_Read) in I2C_MasterTransferEDMA()
[all …]
Dfsl_i2c.c234 i2c_direction_t direction = xfer->direction; in I2C_InitTransferStateMachine() local
245 if (xfer->direction == kI2C_Read) in I2C_InitTransferStateMachine()
247 direction = kI2C_Write; in I2C_InitTransferStateMachine()
266 if (direction == kI2C_Write) in I2C_InitTransferStateMachine()
299 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
303 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
368 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
399 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
831 status_t I2C_MasterStart(I2C_Type *base, uint8_t address, i2c_direction_t direction) in I2C_MasterStart() argument
864 base->D = (uint8_t)(((uint32_t)address) << 1U | ((direction == kI2C_Read) ? 1U : 0U)); in I2C_MasterStart()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ii2c/
Dfsl_i2c.c180 i2c_direction_t direction = xfer->direction; in I2C_InitTransferStateMachine() local
191 if (xfer->direction == kI2C_Read) in I2C_InitTransferStateMachine()
193 direction = kI2C_Write; in I2C_InitTransferStateMachine()
212 if (direction == kI2C_Write) in I2C_InitTransferStateMachine()
233 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
237 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
309 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
340 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
632 status_t I2C_MasterStart(I2C_Type *base, uint8_t address, i2c_direction_t direction) in I2C_MasterStart() argument
647 base->I2DR = (uint16_t)(((uint32_t)address) << 1U | ((direction == kI2C_Read) ? 1U : 0U)); in I2C_MasterStart()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/gpio/
Dfsl_adapter_igpio.c27 uint16_t direction : 1U; member
306 gpioState->pin.direction = (uint16_t)pinConfig->direction; in HAL_GpioInit()
309 if (kHAL_GpioDirectionOut == (hal_gpio_direction_t)pinConfig->direction) in HAL_GpioInit()
311 gpioPinconfig.direction = kGPIO_DigitalOutput; in HAL_GpioInit()
316 gpioPinconfig.direction = kGPIO_DigitalInput; in HAL_GpioInit()
332 if ((uint16_t)kHAL_GpioDirectionIn == gpioState->pin.direction) in HAL_GpioDeinit()
391 if (kHAL_GpioDirectionOut == (hal_gpio_direction_t)gpioStateHandle->pin.direction) in HAL_GpioGetTriggerMode()
413 if (kHAL_GpioDirectionOut == (hal_gpio_direction_t)gpioStateHandle->pin.direction) in HAL_GpioSetTriggerMode()
481 if (kHAL_GpioDirectionOut == (hal_gpio_direction_t)gpioStateHandle->pin.direction) in HAL_GpioWakeUpSetting()
Dfsl_adapter_gint.c27 uint16_t direction : 1U; member
83 if (kHAL_GpioDirectionOut == pinConfig->direction) in HAL_GpioInit()
119 gpioStateHandle->pin.direction = (uint16_t)pinConfig->direction; in HAL_GpioInit()
193 assert((uint16_t)kHAL_GpioDirectionOut != gpioStateHandle->pin.direction); in HAL_GpioSetTriggerMode()
259 assert((uint16_t)kHAL_GpioDirectionOut != gpioStateHandle->pin.direction); in HAL_GpioWakeUpSetting()
457 gpioState->pin.direction = pinConfig->direction;
459 if (kHAL_GpioDirectionOut == pinConfig->direction)
558 if (kHAL_GpioDirectionOut == gpioStateHandle->pin.direction)
578 if (kHAL_GpioDirectionOut == gpioStateHandle->pin.direction)
638 if (kHAL_GpioDirectionOut == gpioStateHandle->pin.direction)
Dfsl_adapter_gpio.c43 uint16_t direction : 1U; member
53 hal_gpio_direction_t direction; member
543 (void)memcpy((void *)&gpioState->direction, (void *)pinConfig, sizeof(hal_gpio_pin_config_t)); in HAL_GpioInit()
545 …ioPort[pinConfig->port], pinConfig->pin, (const gpio_pin_config_t *)(void *)&pinConfig->direction); in HAL_GpioInit()
556 if (kHAL_GpioDirectionIn == gpioState->direction) in HAL_GpioDeinit()
613 if (kHAL_GpioDirectionOut == gpioState->direction) in HAL_GpioGetTriggerMode()
638 assert(kHAL_GpioDirectionOut != gpioState->direction); in HAL_GpioSetTriggerMode()
715 if (kHAL_GpioDirectionOut == gpioState->direction) in HAL_GpioWakeUpSetting()
746 if (kHAL_GpioDirectionOut == gpioState->direction) in HAL_GpioExitLowpower()
752 if (kHAL_GpioDirectionIn == gpioState->direction) in HAL_GpioExitLowpower()
Dfsl_adapter_rt_gpio.c27 uint16_t direction : 1U; member
214 gpioState->pin.direction = (uint16_t)pinConfig->direction; in HAL_GpioInit()
217 if (kHAL_GpioDirectionOut == pinConfig->direction) in HAL_GpioInit()
267 if ((uint16_t)kHAL_GpioDirectionIn == gpioState->pin.direction) in HAL_GpioDeinit()
326 if ((uint16_t)kHAL_GpioDirectionOut == gpioStateHandle->pin.direction) in HAL_GpioGetTriggerMode()
346 assert((uint16_t)kHAL_GpioDirectionOut != gpioStateHandle->pin.direction); in HAL_GpioSetTriggerMode()
402 if ((uint16_t)kHAL_GpioDirectionOut == gpioStateHandle->pin.direction) in HAL_GpioWakeUpSetting()
Dfsl_adapter_lpc_gpio.c43 uint8_t direction : 1U; member
230 gpioState->pin.pinSet.direction = (uint8_t)pinConfig->direction; in HAL_GpioInit()
233 if (kHAL_GpioDirectionOut == pinConfig->direction) in HAL_GpioInit()
363 if ((uint8_t)kHAL_GpioDirectionOut == gpioStateHandle->pin.pinSet.direction) in HAL_GpioGetTriggerMode()
382 if ((uint8_t)kHAL_GpioDirectionOut == gpioStateHandle->pin.pinSet.direction) in HAL_GpioSetTriggerMode()
474 if ((uint8_t)kHAL_GpioDirectionOut == gpioStateHandle->pin.pinSet.direction) in HAL_GpioWakeUpSetting()
/hal_nxp-3.5.0/imx/drivers/
Duart_imx.c63 initConfig->direction | in UART_Init()
194 void UART_SetInvertCmd(UART_Type* base, uint32_t direction, bool invert) in UART_SetInvertCmd() argument
196 assert((direction & uartDirectionTx) || (direction & uartDirectionRx)); in UART_SetInvertCmd()
200 if (direction & UART_UCR2_RXEN_MASK) in UART_SetInvertCmd()
202 if (direction & UART_UCR2_TXEN_MASK) in UART_SetInvertCmd()
207 if (direction & UART_UCR2_RXEN_MASK) in UART_SetInvertCmd()
209 if (direction & UART_UCR2_TXEN_MASK) in UART_SetInvertCmd()
Di2c_imx.h188 static inline void I2C_SetDirMode(I2C_Type* base, uint32_t direction) in I2C_SetDirMode() argument
190 assert((direction == i2cDirectionReceive) || (direction == i2cDirectionTransmit)); in I2C_SetDirMode()
192 I2C_I2CR_REG(base) = (I2C_I2CR_REG(base) & ~I2C_I2CR_MTX_MASK) | direction; in I2C_SetDirMode()
Duart_imx.h56 uint32_t direction; /*!< Data transfer direction of this module. */ member
272 static inline void UART_SetDirMode(UART_Type* base, uint32_t direction) in UART_SetDirMode() argument
274 assert((direction & uartDirectionTx) || (direction & uartDirectionRx)); in UART_SetDirMode()
276 …_UCR2_REG(base) = (UART_UCR2_REG(base) & ~(UART_UCR2_RXEN_MASK | UART_UCR2_TXEN_MASK)) | direction; in UART_SetDirMode()
303 void UART_SetInvertCmd(UART_Type* base, uint32_t direction, bool invert);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c_edma.c167 if (xfer->direction == kLPI2C_Read) in LPI2C_GenerateCommands()
179 lpi2c_direction_t direction = (xfer->subaddressSize != 0U) ? kLPI2C_Write : xfer->direction; in LPI2C_GenerateCommands() local
183 …t16_t)kStartCmd | (uint16_t)((uint16_t)((uint16_t)xfer->slaveAddress << 1U) | (uint16_t)direction); in LPI2C_GenerateCommands()
197 if ((xfer->dataSize != 0U) && (xfer->direction == kLPI2C_Read)) in LPI2C_GenerateCommands()
200 if (direction == kLPI2C_Write) in LPI2C_GenerateCommands()
256 if ((transfer->direction == kLPI2C_Read) && (transfer->dataSize > (256U * 4U))) in LPI2C_MasterTransferEDMA()
318 bool hasSendData = (transfer->direction == kLPI2C_Write) && (transfer->dataSize != 0U); in LPI2C_MasterTransferEDMA()
319 bool hasReceiveData = (transfer->direction == kLPI2C_Read) && (transfer->dataSize != 0U); in LPI2C_MasterTransferEDMA()
483 if (handle->transfer.direction == kLPI2C_Write) in LPI2C_MasterTransferGetCountEDMA()
Dfsl_lpi2c.c1008 if ((transfer->direction == kLPI2C_Read) && in LPI2C_MasterTransferBlocking()
1032 …lpi2c_direction_t direction = (0U != transfer->subaddressSize) ? kLPI2C_Write : transfer->directio… in LPI2C_MasterTransferBlocking() local
1037 … (uint16_t)((uint16_t)((uint16_t)transfer->slaveAddress << 1U) | (uint16_t)direction); in LPI2C_MasterTransferBlocking()
1052 if ((0U != transfer->dataSize) && (transfer->direction == kLPI2C_Read)) in LPI2C_MasterTransferBlocking()
1055 if (direction == kLPI2C_Write) in LPI2C_MasterTransferBlocking()
1082 if ((transfer->direction == kLPI2C_Write) && (transfer->dataSize > 0U)) in LPI2C_MasterTransferBlocking()
1089 if ((transfer->direction == kLPI2C_Read) && (transfer->dataSize > 0U)) in LPI2C_MasterTransferBlocking()
1191 if (handle->transfer.direction == kLPI2C_Read) in LPI2C_TransferStateMachineSendCommand()
1249 if (handle->transfer.direction == kLPI2C_Read) in LPI2C_TransferStateMachineReadCommand()
1262 if (handle->transfer.direction == kLPI2C_Write) in LPI2C_TransferStateMachineTransferData()
[all …]
/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/host/class/
Dusb_host_msd.c554 uint8_t direction; in USB_HostMsdDataCallback() local
575 if (transfer->direction == USB_IN) in USB_HostMsdDataCallback()
577 direction = USB_REQUEST_TYPE_DIR_IN; in USB_HostMsdDataCallback()
581 direction = USB_REQUEST_TYPE_DIR_OUT; in USB_HostMsdDataCallback()
590 … (direction | ((usb_host_pipe_t *)msdInstance->inPipe)->endpointAddress)) != in USB_HostMsdDataCallback()
637 transfer->direction = USB_OUT; in USB_HostMsdProcessCommand()
654 transfer->direction = msdInstance->msdCommand.dataDirection; in USB_HostMsdProcessCommand()
660 if (transfer->direction == USB_OUT) in USB_HostMsdProcessCommand()
690 transfer->direction = USB_IN; in USB_HostMsdProcessCommand()
735 uint8_t direction, in USB_HostMsdCommand() argument
[all …]

12345678910>>...13