|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_hal/II2cBus.h"#include "cdc_hal/hw_config.h"#include "driver/i2c.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "cdc_log.h"Go to the source code of this file.
Classes | |
| struct | cdc::hal::I2cDevice |
| class | cdc::hal::I2cBusImpl |
Namespaces | |
| namespace | cdc |
| namespace | cdc::hal |
Functions | |
| II2cBus * | cdc::hal::getI2cBus0 () |
| Returns singleton instance of I2C bus 0. | |
| II2cBus * | cdc::hal::getI2cBus1 () |
| Returns singleton instance of I2C bus 1. | |
Variables | |
| static const char * | TAG = "I2cBus" |
| static constexpr uint32_t | cdc::hal::I2C_FREQ_HZ = 100000 |
| I2C bus timing configuration constants. | |
| static constexpr uint32_t | cdc::hal::I2C_TIMEOUT_MS = 100 |
| static I2cBusImpl | cdc::hal::g_i2c0 (I2C_NUM_0, I2C0_SDA_PIN, I2C0_SCL_PIN, "i2c0") |
| Singleton instances for both hardware I2C ports. | |
| static I2cBusImpl | cdc::hal::g_i2c1 (I2C_NUM_1, I2C1_SDA_PIN, I2C1_SCL_PIN, "i2c1") |
|
static |
I2C Bus Implementation Uses ESP-IDF legacy I2C driver for stability
Definition at line 13 of file I2cBus.cpp.