45 #include "alt_clock_manager.h"
46 #include "socal/alt_i2c.h"
47 #include "socal/alt_rstmgr.h"
48 #include "socal/hps.h"
49 #include "socal/socal.h"
117 typedef struct ALT_I2C_DEV_s
120 alt_freq_t clock_freq;
121 uint32_t last_target;
736 uint32_t * speed_in_hz);
756 uint32_t speed_in_hz);
761 #define alt_i2c_cfg_to_speed(i2c_dev, speed_in_hz, cfg) alt_i2c_master_config_speed_get((i2c_dev), (cfg), (speed_in_hz))
766 #define alt_i2c_speed_to_cfg(i2c_dev, speed_in_hz, cfg) alt_i2c_master_config_speed_set((i2c_dev), (cfg), (speed_in_hz))
832 uint16_t *tx_hold_time);
849 uint16_t *rx_hold_time);
865 const uint16_t tx_hold_time);
881 const uint16_t rx_hold_time);
950 ALT_STATUS_CODE
alt_i2c_read(ALT_I2C_DEV_t *i2c_dev, uint8_t *val);
974 ALT_STATUS_CODE
alt_i2c_write(ALT_I2C_DEV_t *i2c_dev,
const uint8_t val);
1018 const uint8_t data);
1165 const uint8_t issue_restart,
1166 const uint8_t issue_stop);
1229 const uint8_t issue_restart,
1230 const uint8_t issue_stop);
1274 const uint8_t issue_restart,
1275 const uint8_t issue_stop);
1323 const uint8_t value,
1324 const uint8_t issue_restart,
1325 const uint8_t issue_stop);
1406 const uint8_t issue_restart,
1407 const uint8_t issue_stop);
1636 #define ALT_I2C_RX_FIFO_NUM_ENTRIES 64
1673 uint32_t *num_entries);
1688 uint8_t *threshold);
1703 const uint8_t threshold);
1725 #define ALT_I2C_TX_FIFO_NUM_ENTRIES 64
1762 uint32_t *num_entries);
1777 uint8_t *threshold);
1792 const uint8_t threshold);