46 #include "socal/alt_i2c.h"
47 #include "socal/alt_rstmgr.h"
48 #include "socal/hps.h"
49 #include "socal/socal.h"
123 typedef struct ALT_I2C_DEV_s
127 uint32_t last_target;
782 uint32_t * speed_in_hz);
805 uint32_t speed_in_hz);
810 #define alt_i2c_cfg_to_speed(i2c_dev, speed_in_hz, cfg) alt_i2c_master_config_speed_get((i2c_dev), (cfg), (speed_in_hz))
815 #define alt_i2c_speed_to_cfg(i2c_dev, speed_in_hz, cfg) alt_i2c_master_config_speed_set((i2c_dev), (cfg), (speed_in_hz))
890 uint16_t *hold_time);
910 const uint16_t hold_time);
995 ALT_STATUS_CODE
alt_i2c_read(ALT_I2C_DEV_t *i2c_dev, uint8_t *val);
1022 ALT_STATUS_CODE
alt_i2c_write(ALT_I2C_DEV_t *i2c_dev,
const uint8_t val);
1072 const uint8_t data);
1227 const bool issue_restart,
1228 const bool issue_stop);
1294 const bool issue_restart,
1295 const bool issue_stop);
1345 const bool issue_restart,
1346 const bool issue_stop);
1398 const uint8_t value,
1399 const bool issue_restart,
1400 const bool issue_stop);
1484 const bool issue_restart,
1485 const bool issue_stop);
1747 #define ALT_I2C_RX_FIFO_NUM_ENTRIES 64
1796 uint32_t *num_entries);
1815 uint8_t *threshold);
1834 const uint8_t threshold);
1856 #define ALT_I2C_TX_FIFO_NUM_ENTRIES 64
1905 uint32_t *num_entries);
1924 uint8_t *threshold);
1943 const uint8_t threshold);