/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9xxx/vas_tfa_drv/ |
D | tfa2_init.c | 22 tfa2_i2c_hap_key2(tfa->i2c, 0); in tfa9894_init() 29 tfa2_i2c_write_reg(tfa->i2c, 0x00, 0xa245); // POR=0x8245 in tfa9894_init() 30 tfa2_i2c_write_reg(tfa->i2c, 0x01, 0x15da); // POR=0x11ca in tfa9894_init() 31 tfa2_i2c_write_reg(tfa->i2c, 0x02, 0x5288); // POR=0x55c8 in tfa9894_init() 32 tfa2_i2c_write_reg(tfa->i2c, 0x52, 0xbe17); // POR=0xb617 in tfa9894_init() 33 tfa2_i2c_write_reg(tfa->i2c, 0x53, 0x0dbe); // POR=0x0d9e in tfa9894_init() 34 tfa2_i2c_write_reg(tfa->i2c, 0x56, 0x05c3); // POR=0x07c3 in tfa9894_init() 35 tfa2_i2c_write_reg(tfa->i2c, 0x57, 0x0344); // POR=0x0366 in tfa9894_init() 36 tfa2_i2c_write_reg(tfa->i2c, 0x61, 0x0032); // POR=0x0073 in tfa9894_init() 37 tfa2_i2c_write_reg(tfa->i2c, 0x71, 0x00cf); // POR=0x018d in tfa9894_init() [all …]
|
D | tfa2_dev.c | 28 …"I2C buffer has overflowed: host has sent too many parameters, memory integrity is not guaranteed", 62 "TFA_STATE_RESET", /**< I2C reset and ACS set */ 80 int manstate = tfa2_i2c_read_bf(tfa->i2c, tfa->bf_manstate); in tfa2_show_current_state() 83 dev_err(&tfa->i2c->dev, "can't read MANSTATE\n"); in tfa2_show_current_state() 90 dev_dbg(&tfa->i2c->dev, "Current HW manager state: %s \n", tfa2_manstate_string[manstate]); in tfa2_show_current_state() 95 return tfa2_i2c_get_revid(tfa->i2c); in tfa2_dev_get_revid() 98 int tfa2_i2c_get_revid(struct i2c_client *i2c) in tfa2_i2c_get_revid() argument 102 rc = tfa2_i2c_read_bf(i2c, TFA9XXX_BF_REV); in tfa2_i2c_get_revid() 106 dev_dbg(&i2c->dev, "HW rev: 0x%04x\n", (uint16_t)rc); in tfa2_i2c_get_revid() 116 tfa->slave_address = tfa->i2c->addr; /* used by HostSDK */ in tfa2_dev_probe() [all …]
|
D | tfa2_haptic.c | 85 …dev_dbg(&tfa->i2c->dev, "starting obj[%d] of total %d ms\n", index + 1, tfa2_haptic_get_duration(t… in tfa2_haptic_start() 89 rc = tfa2_haptic_start_object(tfa->i2c, data, index); in tfa2_haptic_start() 177 return tfa2_i2c_write_cf_mem32(tfa->i2c, cmdobjsel, (int32_t *)&stop_obj, 1, TFA2_CF_MEM_XMEM); in tfa2_haptic_stop() 355 int manstate = tfa2_i2c_read_bf(tfa->i2c, tfa->bf_manstate); in tfa2_haptic_recalculate_wait() 365 tfa->i2c, in tfa2_haptic_recalculate_wait() 383 tfa2_haptic_read_sampcnt0(tfa->i2c, &sampcnt0); in tfa2_haptic_recalculate_wait() 385 tfa2_haptic_read_recalc_selector(tfa->i2c, &recalc_selector); in tfa2_haptic_recalculate_wait() 409 …rc = tfa2_i2c_read_cf_mem32_dsp_reset(tfa->i2c, FW_XMEM_VERSION, &fw_version, 1, TFA2_CF_MEM_XMEM); in tfa2_hap_patch_version() 410 …dev_dbg(&tfa->i2c->dev, "%s patch version %d.%d.%d\n", string, (fw_version >> 16) & 0xff, (fw_vers… in tfa2_hap_patch_version() 415 …dev_err(&tfa->i2c->dev, "%s: unsupported firmware version 0x%x, expected 0x%x\n", __func__, fw_ver… in tfa2_hap_patch_version() [all …]
|
D | tfa2_dev.h | 16 #include <linux/i2c.h> 69 int addr; /*!< I2C slave addres */ 102 TFA9XXX_BF_DMEM = 0x9011, /*!< Target memory for CFMA using I2C interface */ 103 TFA9XXX_BF_I2CR = 0x0010, /*!< I2C Reset - Auto clear */ 108 TFA9XXX_BF_MANSCONF = 0x0120, /*!< Device I2C settings configured */ 128 …TFA9XXX_BF_MANCMTPI = 0xa330, /*!< Start copying single word from MTP to I2C mtp register - auto… 129 …TFA9XXX_BF_MANCIMTP = 0xa340, /*!< Start copying single word from I2C mtp register to mtp - auto… 130 …TFA9XXX_BF_CMTPI = 0xa350, /*!< Start copying all the data from mtp to I2C mtp registers - au… 131 …// forbidden TFA9XXX_BF_CIMTP = 0xa360, /*!< Start copying data from I2C mtp registers to mtp -… 164 …7, /* I2C buffer has overflowed: host has sent too many parameters, memory integrity is not guaran… [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/i2c/ |
D | fsl_i2c_cmsis.c | 43 I2C_Type *base; /*!< I2C peripheral base address. */ 56 cmsis_i2c_resource_t *resource; /*!< Basic I2C resource. */ 65 DMA_Type *i2cDmaBase; /*!< DMA peripheral base address for i2c. */ 66 uint32_t i2cDmaChannel; /*!< DMA channel for i2c. */ 67 DMAMUX_Type *i2cDmamuxBase; /*!< DMAMUX peripheral base address for i2c. */ 68 uint16_t i2cDmaRequest; /*!< i2c DMA request source. */ 71 uint32_t i2cDmamuxChannel; /*!< DMAMUX channel for i2c. */ 77 cmsis_i2c_resource_t *resource; /*!< i2c basic resource. */ 78 cmsis_i2c_dma_resource_t *dmaResource; /*!< i2c DMA resource. */ 79 i2c_master_dma_handle_t *master_dma_handle; /*!< i2c DMA transfer handle. */ [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/i2c/ |
D | fsl_i2c.h | 24 /*! @brief I2C driver version. */ 44 /*! @brief I2C status return codes. */ 47 …kStatus_I2C_Busy = MAKE_STATUS(kStatusGroup_I2C, 0), /*!< I2C is busy with current tran… 56 * @brief I2C peripheral flags 63 kI2C_ReceiveNakFlag = I2C_S_RXAK_MASK, /*!< I2C receive NAK flag. */ 64 …kI2C_IntPendingFlag = I2C_S_IICIF_MASK, /*!< I2C interrupt pending flag. This flag can be c… 65 kI2C_TransferDirectionFlag = I2C_S_SRW_MASK, /*!< I2C transfer direction flag. */ 66 kI2C_RangeAddressMatchFlag = I2C_S_RAM_MASK, /*!< I2C range address match flag. */ 67 …kI2C_ArbitrationLostFlag = I2C_S_ARBL_MASK, /*!< I2C arbitration lost flag. This flag can be cl… 68 kI2C_BusBusyFlag = I2C_S_BUSY_MASK, /*!< I2C bus busy flag. */ [all …]
|
D | fsl_i2c.c | 16 #define FSL_COMPONENT_ID "platform.drivers.i2c" 19 /*! @brief i2c transfer state. */ 22 kIdleState = 0x0U, /*!< I2C bus idle. */ 49 * @param base I2C peripheral base address. 50 * @param sourceClock_Hz I2C functional clock frequency in Hertz. 57 * @brief I2C master manually ack byte. 59 * @param base I2C peripheral base address. 68 * @param base I2C peripheral base address. 77 * @param base I2C peripheral base address. 78 * @param status current i2c hardware status. [all …]
|
D | fsl_i2c_freertos.h | 18 * @addtogroup i2c_freertos_driver I2C FreeRTOS Driver 28 /*! @brief I2C FreeRTOS driver version 2.0.9. */ 34 * @brief I2C FreeRTOS handle 38 I2C_Type *base; /*!< I2C base address */ 59 * @name I2C RTOS Operation 64 * @brief Initializes I2C. 66 * This function initializes the I2C module and the related RTOS context. 68 * @param handle The RTOS I2C handle, the pointer to an allocated space for RTOS context. 69 * @param base The pointer base address of the I2C instance to initialize. 70 * @param masterConfig The configuration structure to set-up I2C in master mode. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/i2c/ |
D | fsl_i2c.h | 30 /*! @brief I2C driver version. */ 45 /* definitions for MSTCODE bits in I2C Status register STAT */ 52 /* definitions for SLVSTATE bits in I2C Status register STAT */ 57 /*! @brief I2C status return codes. */ 75 … 10), /*!< Timeout when waiting for I2C master/slave pending status to set to continue transfer. */ 89 * @brief I2C status flags. 95 …kI2C_MasterPendingFlag = I2C_STAT_MSTPENDING_MASK, /*!< The I2C module is waiting for software int… 100 kI2C_MasterIdleFlag = 1UL << 5U, /*!< The I2C master idle status. bit 5 */ 101 …kI2C_MasterRxReadyFlag = 1UL << I2C_STAT_MSTSTATE_SHIFT, /*!< The I2C master rx ready stat… 102 …kI2C_MasterTxReadyFlag = 1UL << (I2C_STAT_MSTSTATE_SHIFT + 1U), /*!< The I2C master tx ready stat… [all …]
|
D | fsl_i2c.c | 48 * @param base The I2C peripheral base address. 55 * @param base The I2C peripheral base address. 57 * @param xfer The I2C transfer configuration structure. 65 * @param base The I2C peripheral base address. 75 * @param base The I2C peripheral base address. 85 * @param base The I2C peripheral base address. 96 * @param base The I2C peripheral base address. 97 * @param handle The I2C slave handle for non-blocking APIs. 98 * @param event The I2C slave event to invoke. 108 * @param base The I2C peripheral base address. [all …]
|
D | fsl_i2c_freertos.h | 18 * @addtogroup i2c_freertos_driver I2C FreeRTOS Driver 28 /*! @brief I2C FreeRTOS driver version 2.0.8. */ 32 /*! @brief I2C FreeRTOS handle */ 35 I2C_Type *base; /*!< I2C base address */ 55 * @name I2C RTOS Operation 60 * @brief Initializes I2C. 62 * This function initializes the I2C module and the related RTOS context. 64 * @param handle The RTOS I2C handle, the pointer to an allocated space for RTOS context. 65 * @param base The pointer base address of the I2C instance to initialize. 66 * @param masterConfig Configuration structure to set-up I2C in master mode. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/ii2c/ |
D | fsl_i2c.h | 24 /*! @brief I2C driver version. */ 33 /*! @brief I2C status return codes. */ 36 …kStatus_I2C_Busy = MAKE_STATUS(kStatusGroup_I2C, 0), /*!< I2C is busy with current tran… 45 * @brief I2C peripheral flags 56 kI2C_ReceiveNakFlag = I2C_I2SR_RXAK_MASK, /*!< I2C receive NAK flag. */ 57 kI2C_IntPendingFlag = I2C_I2SR_IIF_MASK, /*!< I2C interrupt pending flag. */ 58 kI2C_TransferDirectionFlag = I2C_I2SR_SRW_MASK, /*!< I2C transfer direction flag. */ 59 kI2C_ArbitrationLostFlag = I2C_I2SR_IAL_MASK, /*!< I2C arbitration lost flag. */ 60 kI2C_BusBusyFlag = I2C_I2SR_IBB_MASK, /*!< I2C bus busy flag. */ 61 kI2C_AddressMatchFlag = I2C_I2SR_IAAS_MASK, /*!< I2C address match flag. */ [all …]
|
D | fsl_i2c.c | 19 /*! @brief i2c transfer state. */ 22 kIdleState = 0x0U, /*!< I2C bus idle. */ 45 * @brief Get instance number for I2C module. 47 * @param base I2C peripheral base address. 55 * @param base I2C peripheral base address. 64 * @param base I2C peripheral base address. 65 * @param status current i2c hardware status. 75 * @param base I2C peripheral base address. 86 * @brief I2C common interrupt handler. 88 * @param base I2C peripheral base address. [all …]
|
D | fsl_i2c_freertos.h | 18 * @addtogroup i2c_freertos_driver I2C FreeRTOS Driver 28 /*! @brief I2C FreeRTOS driver version. */ 34 * @brief I2C FreeRTOS handle 38 I2C_Type *base; /*!< I2C base address */ 59 * @name I2C RTOS Operation 64 * @brief Initializes I2C. 66 * This function initializes the I2C module and the related RTOS context. 68 * @param handle The RTOS I2C handle, the pointer to an allocated space for RTOS context. 69 * @param base The pointer base address of the I2C instance to initialize. 70 * @param masterConfig The configuration structure to set-up I2C in master mode. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/ii2c/ |
D | fsl_i2c_cmsis.c | 44 I2C_Type *base; /*!< I2C peripheral base address. */ 57 cmsis_i2c_resource_t *resource; /*!< Basic I2C resource. */ 140 …_t I2C_InterruptInitialize(ARM_I2C_SignalEvent_t cb_event, cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_InterruptInitialize() argument 142 if (0U == (i2c->flags & (uint8_t)I2C_FLAG_INIT)) in I2C_InterruptInitialize() 144 i2c->cb_event = cb_event; /* cb_event is CMSIS driver callback. */ in I2C_InterruptInitialize() 145 i2c->flags = (uint8_t)I2C_FLAG_INIT; in I2C_InterruptInitialize() 151 static int32_t I2C_InterruptUninitialize(cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_InterruptUninitialize() argument 153 i2c->flags = (uint8_t)I2C_FLAG_UNINIT; in I2C_InterruptUninitialize() 158 …ddr, const uint8_t *data, uint32_t num, bool xfer_pending, cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_Master_InterruptTransmit() argument 164 /* Check if the I2C bus is idle - if not return busy status. */ in I2C_Master_InterruptTransmit() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_i2c/ |
D | fsl_i2c.h | 19 /* Macro gate for enable/dsiable I2C transactional APIs, 1 for enable, 0 for disable. */ 35 /*! @brief I2C driver version. */ 44 /* definitions for MSTCODE bits in I2C Status register STAT */ 51 /* definitions for SLVSTATE bits in I2C Status register STAT */ 56 /*! @brief I2C status return codes. */ 83 * @brief I2C master peripheral flags. 89 …kI2C_MasterPendingFlag = I2C_STAT_MSTPENDING_MASK, /*!< The I2C module is waiting for software int… 104 * @brief Structure with settings to initialize the I2C master module. 106 * This structure holds configuration settings for the I2C peripheral. To initialize this 120 /*! @brief I2C master transfer typedef */ [all …]
|
D | fsl_i2c.c | 53 /*! @brief Array to map i2c instance number to base address. */ 57 /*! @brief Pointers to i2c clocks for each instance. */ 66 /*! @brief Pointers to i2c handles for each instance. */ 89 * @param base The I2C peripheral base address. 90 * @return I2C instance number starting from 0. 98 * param base The I2C peripheral base address. 99 * return I2C instance number starting from 0. 120 * brief Provides a default configuration for the I2C master peripheral. 122 * This function provides the following default configuration for the I2C master peripheral: 145 * brief Initializes the I2C master peripheral. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/i2c/ |
D | fsl_adapter_i2c.h | 20 /*! @brief HAL I2C master handle size. */ 23 /*! @brief HAL I2C slave handle size. */ 26 /*! @brief HAL I2C status. */ 30 …atus_HAL_I2cError = MAKE_STATUS(kStatusGroup_HAL_I2C, 1), /*!< Error occurs on HAL I2C */ 31 …kStatus_HAL_I2cBusy = MAKE_STATUS(kStatusGroup_HAL_I2C, 2), /*!< HAL I2C is busy with c… 32 …kStatus_HAL_I2cIdle = MAKE_STATUS(kStatusGroup_HAL_I2C, 3), /*!< HAL I2C transmitter is… 39 /*! @brief HAL I2C master user configuration. */ 42 uint32_t srcClock_Hz; /*!< Clock source for I2C in Hz */ 43 uint32_t baudRate_Bps; /*!< Baud rate configuration of HAL I2C peripheral. */ 44 bool enableMaster; /*!< Enables the HAL I2C peripheral at initialization time. */ [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/flexcomm/ |
D | fsl_i2c_cmsis.c | 46 I2C_Type *base; /*!< I2C peripheral base address. */ 59 cmsis_i2c_resource_t *resource; /*!< Basic I2C resource. */ 68 DMA_Type *i2cDmaBase; /*!< DMA peripheral base address for i2c. */ 69 uint32_t i2cDmaChannel; /*!< DMA channel for i2c. */ 74 cmsis_i2c_resource_t *resource; /*!< i2c basic resource. */ 75 cmsis_i2c_dma_resource_t *dmaResource; /*!< i2c DMA resource. */ 76 i2c_master_dma_handle_t *master_dma_handle; /*!< i2c DMA transfer handle. */ 77 dma_handle_t *dmaHandle; /*!< DMA i2c handle. */ 143 …int32_t I2C_Master_DmaInitialize(ARM_I2C_SignalEvent_t cb_event, cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaInitialize() argument 145 if (0U == (i2c->flags & (uint8_t)I2C_FLAG_INIT)) in I2C_Master_DmaInitialize() [all …]
|
/hal_nxp-latest/imx/drivers/ |
D | i2c_imx.h | 48 /*! @brief I2C module initialization structure. */ 51 uint32_t clockRate; /*!< Current I2C module clock freq. */ 52 uint32_t baudRate; /*!< Desired I2C baud rate. */ 53 uint8_t slaveAddress; /*!< I2C module's own address when addressed as slave device. */ 56 /*! @brief Flag for I2C interrupt status check or polling status. */ 68 /*! @brief I2C Bus role of this module. */ 71 i2cModeSlave = 0x0, /*!< This module works as I2C Slave. */ 72 i2cModeMaster = I2C_I2CR_MSTA_MASK, /*!< This module works as I2C Master. */ 91 * @name I2C Initialization and Configuration functions 96 * @brief Initialize I2C module with given initialization structure. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Driver/Include/ |
D | Driver_I2C.h | 21 * Project: I2C (Inter-Integrated Circuit) Driver definitions 72 /****** I2C Control Codes *****/ 79 /*----- I2C Bus Speed -----*/ 86 /****** I2C Address Flags *****/ 93 \brief I2C Status 106 /****** I2C Event *****/ 129 \brief Initialize I2C Interface. 134 \brief De-initialize I2C Interface. 138 \brief Control I2C Interface Power. 143 \brief Start transmitting data as I2C Master. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexio/i2c/ |
D | fsl_flexio_i2c_master.h | 33 /*! @brief FlexIO I2C transfer status*/ 36 …kStatus_FLEXIO_I2C_Busy = MAKE_STATUS(kStatusGroup_FLEXIO_I2C, 0), /*!< I2C is busy doing trans… 37 …kStatus_FLEXIO_I2C_Idle = MAKE_STATUS(kStatusGroup_FLEXIO_I2C, 1), /*!< I2C is busy doing trans… 42 /*! @brief Define FlexIO I2C master interrupt mask. */ 49 /*! @brief Define FlexIO I2C master status mask. */ 64 /*! @brief Define FlexIO I2C master access structure typedef. */ 68 uint8_t SDAPinIndex; /*!< Pin select for I2C SDA. */ 69 uint8_t SCLPinIndex; /*!< Pin select for I2C SCL. */ 70 uint8_t shifterIndex[2]; /*!< Shifter index used in FlexIO I2C. */ 71 uint8_t timerIndex[3]; /*!< Timer index used in FlexIO I2C. */ [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/i3c_bus/ |
D | fsl_component_i3c.h | 173 /*! @brief I2C device definition. */ 176 list_element_t listNode; /*!< list node to link i2c devices in i3c bus. */ 179 uint8_t staticAddr; /*!< static address for I2C device. */ 180 uint8_t lvr; /*!< LVR for I2C device. */ 234 /*! @brief I2C device information. */ 237 int (*Init)(i2c_device_t *dev); /*!< I2C device initialize function.*/ 238 void (*Deinit)(i2c_device_t *dev); /*!< I2C device de-initialize function.*/ 244 i2c_device_hw_ops_t *funcs; /*!< Pointer to I2C device hardware operation API sets.*/ 245 void *resource; /*!< Pointer to keep I2C device specific resource.*/ 246 void *privateData; /*!< Pointer to keep I2C device private data.*/ [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/codec/i2c/ |
D | fsl_codec_i2c.h | 23 /*! @brief codec i2c handler */ 43 /*! @brief CODEC I2C configurations structure */ 46 uint32_t codecI2CInstance; /*!< i2c bus instance */ 47 uint32_t codecI2CSourceClock; /*!< i2c bus source clock frequency */ 58 * @brief Codec i2c bus initilization. 60 * @param handle i2c master handle. 61 * @param i2cInstance instance number of the i2c bus, such as 0 is corresponding to I2C0. 62 * @param i2cBaudrate i2c baudrate. 63 * @param i2cSourceClockHz i2c source clock frequency. 69 * @brief Codec i2c de-initilization. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/ |
D | srtm_i2c_service.h | 22 /** @brief Switch to disable I2C service debugging messages. */ 35 /* I2C Service Notification Command definition */ 39 /* I2C Service Request Command definition */ 45 * @brief SRTM I2C payload structure 104 * @brief SRTM I2C adapter structure pointer. 109 * @brief SRTM I2C adapter structure 118 /* Interfaces implemented by I2C adapter */ 146 * @brief Create I2C service. 148 * @param adapter I2C adapter to provide real I2C features. 154 * @brief Destroy I2C service. [all …]
|