Home
last modified time | relevance | path

Searched refs:i2c_driver (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/ft6x06/
Dfsl_ft6x06.c53 status_t FT6X06_Init(ft6x06_handle_t *handle, ARM_DRIVER_I2C *i2c_driver) in FT6X06_Init() argument
59 assert(i2c_driver); in FT6X06_Init()
61 if (!handle || !i2c_driver) in FT6X06_Init()
66 handle->i2c_driver = i2c_driver; in FT6X06_Init()
75 if (handle->i2c_driver->MasterTransmit(FT6X06_I2C_ADDRESS, i2c_buf, 2, false) != ARM_DRIVER_OK) in FT6X06_Init()
96 handle->i2c_driver = NULL; in FT6X06_Denit()
107 if (!handle || !(handle->i2c_driver)) in FT6X06_ReadTouchData()
114 if (handle->i2c_driver->MasterTransmit(FT6X06_I2C_ADDRESS, i2c_buf, 1, true) != ARM_DRIVER_OK) in FT6X06_ReadTouchData()
122 …else if (handle->i2c_driver->MasterReceive(FT6X06_I2C_ADDRESS, handle->touch_buf, FT6X06_TOUCH_DAT… in FT6X06_ReadTouchData()
Dfsl_ft6x06.h54 ARM_DRIVER_I2C *i2c_driver; member
60 status_t FT6X06_Init(ft6x06_handle_t *handle, ARM_DRIVER_I2C *i2c_driver);