| /bsp/microchip/samc21/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/microchip/saml10/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/microchip/same70/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/microchip/same54/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/include/ |
| A D | hpl_i2c_m_async.h | 55 typedef void (*_i2c_complete_cb_t)(struct _i2c_m_async_device *i2c_dev); 56 typedef void (*_i2c_error_cb_t)(struct _i2c_m_async_device *i2c_dev, int32_t errcode); 91 int32_t _i2c_m_async_init(struct _i2c_m_async_device *const i2c_dev, void *const hw); 100 int32_t _i2c_m_async_deinit(struct _i2c_m_async_device *const i2c_dev); 111 int32_t _i2c_m_async_enable(struct _i2c_m_async_device *const i2c_dev); 122 int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev); 134 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg); 147 int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint… 160 int32_t _i2c_m_async_register_callback(struct _i2c_m_async_device *i2c_dev, enum _i2c_m_async_callb… 174 int32_t _i2c_m_async_send_stop(struct _i2c_m_async_device *const i2c_dev); [all …]
|
| A D | hpl_i2c_m_sync.h | 112 int32_t _i2c_m_sync_init(struct _i2c_m_sync_device *const i2c_dev, void *const hw); 121 int32_t _i2c_m_sync_deinit(struct _i2c_m_sync_device *const i2c_dev); 132 int32_t _i2c_m_sync_enable(struct _i2c_m_sync_device *const i2c_dev); 143 int32_t _i2c_m_sync_disable(struct _i2c_m_sync_device *const i2c_dev); 155 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg); 168 int32_t _i2c_m_sync_set_baudrate(struct _i2c_m_sync_device *const i2c_dev, uint32_t clkrate, uint32… 179 int32_t _i2c_m_sync_send_stop(struct _i2c_m_sync_device *const i2c_dev);
|
| /bsp/hc32/tests/ |
| A D | test_soft_i2c.c | 67 static void ssd1306_init(struct rt_i2c_bus_device *i2c_dev); 68 static void ssd1306_roll_display(struct rt_i2c_bus_device *i2c_dev); 69 static void ssd1306_deinit(struct rt_i2c_bus_device *i2c_dev); 94 if (1 != rt_i2c_transfer(i2c_dev, &msgs, 1)) in ssd1306_write_single_reg() 124 if (1 != rt_i2c_transfer(i2c_dev, &msgs, 1)) in ssd1306_write_mult_reg() 176 static void ssd1306_deinit(struct rt_i2c_bus_device *i2c_dev) in ssd1306_deinit() argument 185 ssd1306_write_mult_reg(i2c_dev, RT_TRUE, in ssd1306_deinit() 191 static void ssd1306_init(struct rt_i2c_bus_device *i2c_dev) in ssd1306_init() argument 193 ssd1306_write_mult_reg(i2c_dev, RT_TRUE, in ssd1306_init() 205 void mOledWriteCharHnWm(struct rt_i2c_bus_device *i2c_dev, in mOledWriteCharHnWm() argument [all …]
|
| /bsp/gd32/arm/libraries/gd32_drivers/ |
| A D | drv_hw_i2c.c | 58 if (i2c_dev->errs & I2C_GD32_ERR_BERR) LOG_E("[%s] Bus error", i2c_dev->config->device_name); in i2c_log_error() 59 …if (i2c_dev->errs & I2C_GD32_ERR_LARB) LOG_E("[%s] Arbitration lost", i2c_dev->config->device_name… in i2c_log_error() 60 …if (i2c_dev->errs & I2C_GD32_ERR_AERR) LOG_E("[%s] No ACK received", i2c_dev->config->device_name); in i2c_log_error() 61 …if (i2c_dev->errs & I2C_GD32_ERR_BUSY) LOG_E("[%s] I2C bus is busy", i2c_dev->config->device_name); in i2c_log_error() 305 struct gd32_i2c *i2c_dev; in gd32_i2c_master_xfer() local 315 cfg = i2c_dev->config; in gd32_i2c_master_xfer() 355 cfg->device_name, itr - i, i2c_dev->xfer_len, current_addr, i2c_dev->current->flags); in gd32_i2c_master_xfer() 377 i2c_dev->errs = 0; in gd32_i2c_master_xfer() 383 if ((i2c_dev->current->flags & RT_I2C_RD) && (i2c_dev->current->flags & RT_I2C_ADDR_10BIT)) in gd32_i2c_master_xfer() 390 if ((i2c_dev->current->flags & RT_I2C_RD) && (i2c_dev->xfer_len == 2)) in gd32_i2c_master_xfer() [all …]
|
| /bsp/microchip/samd51-adafruit-metro-m4/bsp/hpl/sercom/ |
| A D | hpl_sercom.c | 1084 ASSERT(i2c_dev); in _i2c_m_async_enable() 1098 ASSERT(i2c_dev); in _i2c_m_async_disable() 1162 ASSERT(i2c_dev); in _i2c_m_async_init() 1189 ASSERT(i2c_dev); in _i2c_m_async_deinit() 1208 ASSERT(i2c_dev); in _sercom_i2c_send_address() 1248 ASSERT(i2c_dev); in _i2c_m_async_transfer() 1344 ASSERT(i2c_dev); in _i2c_m_sync_init() 1358 ASSERT(i2c_dev); in _i2c_m_sync_deinit() 1373 ASSERT(i2c_dev); in _i2c_m_sync_enable() 1387 ASSERT(i2c_dev); in _i2c_m_sync_disable() [all …]
|
| /bsp/microchip/samc21/bsp/hpl/sercom/ |
| A D | hpl_sercom.c | 1143 ASSERT(i2c_dev); in _i2c_m_async_enable() 1157 ASSERT(i2c_dev); in _i2c_m_async_disable() 1221 ASSERT(i2c_dev); in _i2c_m_async_init() 1245 ASSERT(i2c_dev); in _i2c_m_async_deinit() 1264 ASSERT(i2c_dev); in _sercom_i2c_send_address() 1304 ASSERT(i2c_dev); in _i2c_m_async_transfer() 1400 ASSERT(i2c_dev); in _i2c_m_sync_init() 1414 ASSERT(i2c_dev); in _i2c_m_sync_deinit() 1429 ASSERT(i2c_dev); in _i2c_m_sync_enable() 1443 ASSERT(i2c_dev); in _i2c_m_sync_disable() [all …]
|
| /bsp/microchip/samd51-seeed-wio-terminal/bsp/hpl/sercom/ |
| A D | hpl_sercom.c | 1084 ASSERT(i2c_dev); in _i2c_m_async_enable() 1098 ASSERT(i2c_dev); in _i2c_m_async_disable() 1162 ASSERT(i2c_dev); in _i2c_m_async_init() 1189 ASSERT(i2c_dev); in _i2c_m_async_deinit() 1208 ASSERT(i2c_dev); in _sercom_i2c_send_address() 1248 ASSERT(i2c_dev); in _i2c_m_async_transfer() 1344 ASSERT(i2c_dev); in _i2c_m_sync_init() 1358 ASSERT(i2c_dev); in _i2c_m_sync_deinit() 1373 ASSERT(i2c_dev); in _i2c_m_sync_enable() 1387 ASSERT(i2c_dev); in _i2c_m_sync_disable() [all …]
|
| /bsp/microchip/saml10/bsp/hpl/sercom/ |
| A D | hpl_sercom.c | 1084 ASSERT(i2c_dev); in _i2c_m_async_enable() 1098 ASSERT(i2c_dev); in _i2c_m_async_disable() 1162 ASSERT(i2c_dev); in _i2c_m_async_init() 1189 ASSERT(i2c_dev); in _i2c_m_async_deinit() 1208 ASSERT(i2c_dev); in _sercom_i2c_send_address() 1248 ASSERT(i2c_dev); in _i2c_m_async_transfer() 1344 ASSERT(i2c_dev); in _i2c_m_sync_init() 1358 ASSERT(i2c_dev); in _i2c_m_sync_deinit() 1373 ASSERT(i2c_dev); in _i2c_m_sync_enable() 1387 ASSERT(i2c_dev); in _i2c_m_sync_disable() [all …]
|
| /bsp/microchip/same54/bsp/hpl/sercom/ |
| A D | hpl_sercom.c | 1157 ASSERT(i2c_dev); in _i2c_m_async_enable() 1171 ASSERT(i2c_dev); in _i2c_m_async_disable() 1235 ASSERT(i2c_dev); in _i2c_m_async_init() 1262 ASSERT(i2c_dev); in _i2c_m_async_deinit() 1281 ASSERT(i2c_dev); in _sercom_i2c_send_address() 1321 ASSERT(i2c_dev); in _i2c_m_async_transfer() 1417 ASSERT(i2c_dev); in _i2c_m_sync_init() 1431 ASSERT(i2c_dev); in _i2c_m_sync_deinit() 1446 ASSERT(i2c_dev); in _i2c_m_sync_enable() 1460 ASSERT(i2c_dev); in _i2c_m_sync_disable() [all …]
|
| /bsp/essemi/es32vf2264/applications/arduino_pinout/examples/ |
| A D | arduino_examples.cpp | 36 Adafruit_I2CDevice i2c_dev(0x2D); variable 37 Adafruit_BusIO_Register i2c_reg(&i2c_dev, 0x4241, 2, 0, 2); 101 i2c_dev.begin(); in setup() 172 i2c_dev.write((uint8_t *)buf, strlen(buf), true, (uint8_t *)buf2, strlen(buf2)); in loop()
|
| /bsp/essemi/es32f369x/applications/arduino_pinout/examples/ |
| A D | arduino_examples.cpp | 32 Adafruit_I2CDevice i2c_dev(0x2D); variable 33 Adafruit_BusIO_Register i2c_reg(&i2c_dev, 0x6261, 2, 0, 2); 78 i2c_dev.begin(); in setup() 138 i2c_dev.write((uint8_t *)buf, strlen(buf), true, (uint8_t *)buf2, 2); in loop()
|
| /bsp/dm365/drivers/ |
| A D | i2c-davinci.c | 94 static inline void davinci_i2c_write_reg(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_write_reg() argument 97 davinci_writew(val, i2c_dev->base + reg); in davinci_i2c_write_reg() 100 static inline rt_uint16_t davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) in davinci_i2c_read_reg() argument 102 return davinci_readw(i2c_dev->base + reg); in davinci_i2c_read_reg() 160 static inline void davinci_i2c_reset_ctrl(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_reset_ctrl() argument 165 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG); in davinci_i2c_reset_ctrl() 171 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w); in davinci_i2c_reset_ctrl()
|
| /bsp/nuvoton/libraries/nu_packages/DA9062/ |
| A D | da9062.c | 204 int rt_hw_da9062_init(const char *i2c_dev) in rt_hw_da9062_init() argument 206 RT_ASSERT(i2c_dev != RT_NULL); in rt_hw_da9062_init() 209 g_psNuEpwmCap = (struct rt_i2c_bus_device *)rt_device_find(i2c_dev); in rt_hw_da9062_init() 212 LOG_E("Can't found I2C bus - %s..!\n", i2c_dev); in rt_hw_da9062_init()
|
| A D | da9062.h | 18 int rt_hw_da9062_init(const char *i2c_dev);
|
| /bsp/ht32/ht32f52352/applications/ |
| A D | test.c | 68 static struct rt_i2c_bus_device *i2c_dev; variable 429 if (rt_i2c_transfer(i2c_dev, msg1, 1) == 1) in i2c_thread() 448 if (rt_i2c_transfer(i2c_dev, msg1, 2) == 2) in i2c_thread() 503 i2c_dev = (struct rt_i2c_bus_device *)rt_device_find(i2c_name); in i2c_task() 504 if (!i2c_dev) in i2c_task()
|