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);
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);
ALT_STATUS_CODE alt_i2c_tx_dma_threshold_set(ALT_I2C_DEV_t *i2c_dev, uint8_t threshold)
Definition: alt_i2c.c:1996
ALT_STATUS_CODE alt_i2c_rx_dma_threshold_set(ALT_I2C_DEV_t *i2c_dev, uint8_t threshold)
Definition: alt_i2c.c:1968
ALT_STATUS_CODE alt_i2c_rx_dma_threshold_get(ALT_I2C_DEV_t *i2c_dev, uint8_t *threshold)
Definition: alt_i2c.c:1957
ALT_STATUS_CODE alt_i2c_tx_dma_threshold_get(ALT_I2C_DEV_t *i2c_dev, uint8_t *threshold)
Definition: alt_i2c.c:1985
ALT_STATUS_CODE alt_i2c_general_call_ack_enable(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1528
ALT_STATUS_CODE alt_i2c_general_call_ack_disable(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1490
ALT_STATUS_CODE alt_i2c_general_call_ack_is_enabled(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1566
ALT_STATUS_CODE alt_i2c_master_general_call(ALT_I2C_DEV_t *i2c_dev, const void *data, const size_t size, const bool issue_restart, const bool issue_stop)
Definition: alt_i2c.c:1456
ALT_STATUS_CODE alt_i2c_int_raw_status_get(ALT_I2C_DEV_t *i2c_dev, uint32_t *status)
Definition: alt_i2c.c:1607
ALT_STATUS_CODE alt_i2c_int_status_get(ALT_I2C_DEV_t *i2c_dev, uint32_t *status)
Definition: alt_i2c.c:1590
ALT_STATUS_CODE alt_i2c_int_enable(ALT_I2C_DEV_t *i2c_dev, const uint32_t mask)
Definition: alt_i2c.c:1703
ALT_STATUS_CODE alt_i2c_tx_abort_cause_get(ALT_I2C_DEV_t *i2c_dev, ALT_I2C_TX_ABORT_CAUSE_t *cause)
Definition: alt_i2c.c:1720
ALT_STATUS_CODE alt_i2c_int_clear(ALT_I2C_DEV_t *i2c_dev, const uint32_t mask)
Definition: alt_i2c.c:1624
ALT_STATUS_CODE alt_i2c_int_disable(ALT_I2C_DEV_t *i2c_dev, const uint32_t mask)
Definition: alt_i2c.c:1687
ALT_STATUS_CODE alt_i2c_rx_fifo_threshold_set(ALT_I2C_DEV_t *i2c_dev, const uint8_t threshold)
Definition: alt_i2c.c:1810
ALT_STATUS_CODE alt_i2c_rx_fifo_level_get(ALT_I2C_DEV_t *i2c_dev, uint32_t *num_entries)
Definition: alt_i2c.c:1778
ALT_STATUS_CODE alt_i2c_rx_fifo_threshold_get(ALT_I2C_DEV_t *i2c_dev, uint8_t *threshold)
Definition: alt_i2c.c:1794
ALT_STATUS_CODE alt_i2c_rx_fifo_is_full(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1758
ALT_STATUS_CODE alt_i2c_rx_fifo_is_empty(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1738
ALT_STATUS_CODE alt_i2c_sda_hold_time_get(ALT_I2C_DEV_t *i2c_dev, uint16_t *hold_time)
Definition: alt_i2c.c:626
ALT_STATUS_CODE alt_i2c_sda_hold_time_set(ALT_I2C_DEV_t *i2c_dev, const uint16_t hold_time)
Definition: alt_i2c.c:643
ALT_STATUS_CODE alt_i2c_tx_fifo_threshold_set(ALT_I2C_DEV_t *i2c_dev, const uint8_t threshold)
Definition: alt_i2c.c:1920
ALT_STATUS_CODE alt_i2c_tx_fifo_is_full(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1868
ALT_STATUS_CODE alt_i2c_tx_fifo_level_get(ALT_I2C_DEV_t *i2c_dev, uint32_t *num_entries)
Definition: alt_i2c.c:1888
ALT_STATUS_CODE alt_i2c_tx_fifo_is_empty(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:1848
ALT_STATUS_CODE alt_i2c_tx_fifo_threshold_get(ALT_I2C_DEV_t *i2c_dev, uint8_t *threshold)
Definition: alt_i2c.c:1904
ALT_I2C_CTLR_e
Definition: alt_i2c.h:135
ALT_STATUS_CODE alt_i2c_slave_bulk_transmit(ALT_I2C_DEV_t *i2c_dev, const void *data, const size_t size)
Definition: alt_i2c.c:859
ALT_STATUS_CODE alt_i2c_master_transmit(ALT_I2C_DEV_t *i2c_dev, const void *data, const size_t size, const bool issue_restart, const bool issue_stop)
Definition: alt_i2c.c:1048
ALT_I2C_STATUS_e
Definition: alt_i2c.h:196
ALT_STATUS_CODE alt_i2c_write(ALT_I2C_DEV_t *i2c_dev, const uint8_t val)
Definition: alt_i2c.c:803
enum ALT_I2C_MODE_e ALT_I2C_MODE_t
ALT_STATUS_CODE alt_i2c_issue_write(ALT_I2C_DEV_t *i2c_dev, const uint8_t value, const bool issue_restart, const bool issue_stop)
Definition: alt_i2c.c:1382
ALT_STATUS_CODE alt_i2c_slave_config_get(ALT_I2C_DEV_t *i2c_dev, ALT_I2C_SLAVE_CONFIG_t *cfg)
Definition: alt_i2c.c:545
ALT_STATUS_CODE alt_i2c_slave_transmit(ALT_I2C_DEV_t *i2c_dev, const uint8_t data)
Definition: alt_i2c.c:848
enum ALT_I2C_TX_ABORT_CAUSE_e ALT_I2C_TX_ABORT_CAUSE_t
ALT_I2C_TX_ABORT_CAUSE_e
Definition: alt_i2c.h:354
ALT_STATUS_CODE alt_i2c_master_config_get(ALT_I2C_DEV_t *i2c_dev, ALT_I2C_MASTER_CONFIG_t *cfg)
Definition: alt_i2c.c:379
ALT_STATUS_CODE alt_i2c_op_mode_get(ALT_I2C_DEV_t *i2c_dev, ALT_I2C_MODE_t *mode)
Definition: alt_i2c.c:681
enum ALT_I2C_STATUS_e ALT_I2C_STATUS_t
ALT_STATUS_CODE alt_i2c_read(ALT_I2C_DEV_t *i2c_dev, uint8_t *val)
Definition: alt_i2c.c:783
ALT_STATUS_CODE alt_i2c_is_busy(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:763
ALT_STATUS_CODE alt_i2c_enable(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:298
ALT_STATUS_CODE alt_i2c_init(const ALT_I2C_CTLR_t i2c, ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:176
enum ALT_I2C_TRANSFER_TYPE_e ALT_I2C_TRANSFER_TYPE_t
ALT_STATUS_CODE alt_i2c_is_enabled(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:366
enum ALT_I2C_SPEED_e ALT_I2C_SPEED_t
enum ALT_I2C_ADDR_MODE_e ALT_I2C_ADDR_MODE_t
ALT_STATUS_CODE alt_i2c_master_target_set(ALT_I2C_DEV_t *i2c_dev, uint32_t target_addr)
Definition: alt_i2c.c:899
ALT_STATUS_CODE alt_i2c_master_config_speed_get(ALT_I2C_DEV_t *i2c_dev, const ALT_I2C_MASTER_CONFIG_t *cfg, uint32_t *speed_in_hz)
Definition: alt_i2c.c:480
ALT_I2C_ADDR_MODE_e
Definition: alt_i2c.h:185
ALT_STATUS_CODE alt_i2c_master_target_get(ALT_I2C_DEV_t *i2c_dev, uint32_t *target_addr)
Definition: alt_i2c.c:887
struct ALT_I2C_MASTER_CONFIG_s ALT_I2C_MASTER_CONFIG_t
ALT_STATUS_CODE alt_i2c_slave_receive(ALT_I2C_DEV_t *i2c_dev, uint8_t *data)
Definition: alt_i2c.c:825
ALT_STATUS_CODE alt_i2c_master_receive(ALT_I2C_DEV_t *i2c_dev, void *data, const size_t size, const bool issue_restart, const bool issue_stop)
Definition: alt_i2c.c:1226
ALT_I2C_TRANSFER_TYPE_e
Definition: alt_i2c.h:102
ALT_STATUS_CODE alt_i2c_master_config_speed_set(ALT_I2C_DEV_t *i2c_dev, ALT_I2C_MASTER_CONFIG_t *cfg, uint32_t speed_in_hz)
Definition: alt_i2c.c:504
ALT_I2C_MODE_e
Definition: alt_i2c.h:150
ALT_STATUS_CODE alt_i2c_disable(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:317
ALT_STATUS_CODE alt_i2c_issue_read(ALT_I2C_DEV_t *i2c_dev, const bool issue_restart, const bool issue_stop)
Definition: alt_i2c.c:1419
ALT_I2C_SPEED_e
Definition: alt_i2c.h:169
enum ALT_I2C_CTLR_e ALT_I2C_CTLR_t
ALT_STATUS_CODE alt_i2c_master_config_set(ALT_I2C_DEV_t *i2c_dev, const ALT_I2C_MASTER_CONFIG_t *cfg)
Definition: alt_i2c.c:407
ALT_STATUS_CODE alt_i2c_uninit(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:271
ALT_STATUS_CODE alt_i2c_reset(ALT_I2C_DEV_t *i2c_dev)
Definition: alt_i2c.c:213
struct ALT_I2C_SLAVE_CONFIG_s ALT_I2C_SLAVE_CONFIG_t
ALT_STATUS_CODE alt_i2c_slave_config_set(ALT_I2C_DEV_t *i2c_dev, const ALT_I2C_SLAVE_CONFIG_t *cfg)
Definition: alt_i2c.c:567
ALT_STATUS_CODE alt_i2c_op_mode_set(ALT_I2C_DEV_t *i2c_dev, const ALT_I2C_MODE_t mode)
Definition: alt_i2c.c:708
@ ALT_I2C_I2C2
Definition: alt_i2c.h:138
@ ALT_I2C_I2C1
Definition: alt_i2c.h:137
@ ALT_I2C_I2C0
Definition: alt_i2c.h:136
@ ALT_I2C_I2C3
Definition: alt_i2c.h:139
@ ALT_I2C_STATUS_ACTIVITY
Definition: alt_i2c.h:292
@ ALT_I2C_STATUS_START_DET
Definition: alt_i2c.h:315
@ ALT_I2C_STATUS_TX_ABORT
Definition: alt_i2c.h:264
@ ALT_I2C_STATUS_RX_OVER
Definition: alt_i2c.h:205
@ ALT_I2C_STATUS_TX_OVER
Definition: alt_i2c.h:227
@ ALT_I2C_STATUS_TX_EMPTY
Definition: alt_i2c.h:236
@ ALT_I2C_STATUS_RX_UNDER
Definition: alt_i2c.h:197
@ ALT_I2C_STATUS_RX_DONE
Definition: alt_i2c.h:284
@ ALT_I2C_STATUS_INT_CALL
Definition: alt_i2c.h:321
@ ALT_I2C_STATUS_INT_ALL
Definition: alt_i2c.h:330
@ ALT_I2C_STATUS_RD_REQ
Definition: alt_i2c.h:250
@ ALT_I2C_STATUS_STOP_DET
Definition: alt_i2c.h:309
@ ALT_I2C_STATUS_RX_FULL
Definition: alt_i2c.h:216
@ ALT_I2C_TX_ABORT_CAUSE_10ADDR2_NOACK
Definition: alt_i2c.h:373
@ ALT_I2C_TX_ABORT_CAUSE_MST_DIS
Definition: alt_i2c.h:461
@ ALT_I2C_TX_ABORT_CAUSE_SLVRD_INTX
Definition: alt_i2c.h:503
@ ALT_I2C_TX_ABORT_CAUSE_GCALL_RD
Definition: alt_i2c.h:400
@ ALT_I2C_TX_ABORT_CAUSE_ARB_LOST
Definition: alt_i2c.h:468
@ ALT_I2C_TX_ABORT_CAUSE_HS_NORSTRT
Definition: alt_i2c.h:423
@ ALT_I2C_TX_ABORT_CAUSE_TXDATA_NOACK
Definition: alt_i2c.h:382
@ ALT_I2C_TX_ABORT_CAUSE_HS_ACKDET
Definition: alt_i2c.h:409
@ ALT_I2C_TX_ABORT_CAUSE_SLV_ARBLOST
Definition: alt_i2c.h:487
@ ALT_I2C_TX_ABORT_CAUSE_10ADDR1_NOACK
Definition: alt_i2c.h:364
@ ALT_I2C_TX_ABORT_CAUSE_SBYTE_NORSTRT
Definition: alt_i2c.h:433
@ ALT_I2C_TX_ABORT_CAUSE_SBYTE_ACKDET
Definition: alt_i2c.h:416
@ ALT_I2C_TX_ABORT_CAUSE_SLVFLUSH_TXFIFO
Definition: alt_i2c.h:478
@ ALT_I2C_TX_ABORT_CAUSE_7B_ADDR_NOACK
Definition: alt_i2c.h:355
@ ALT_I2C_TX_ABORT_CAUSE_GCALL_NOACK
Definition: alt_i2c.h:392
@ ALT_I2C_TX_ABORT_CAUSE_10B_RD_NORSTRT
Definition: alt_i2c.h:453
@ ALT_I2C_ADDR_MODE_10_BIT
Definition: alt_i2c.h:188
@ ALT_I2C_ADDR_MODE_7_BIT
Definition: alt_i2c.h:186
@ ALT_I2C_TRANSFER_READ
Definition: alt_i2c.h:106
@ ALT_I2C_TRANSFER_NONE
Definition: alt_i2c.h:103
@ ALT_I2C_TRANSFER_WRITE
Definition: alt_i2c.h:107
@ ALT_I2C_TRANSFER_COMPLETE
Definition: alt_i2c.h:105
@ ALT_I2C_TRANSFER_START
Definition: alt_i2c.h:104
@ ALT_I2C_MODE_SLAVE
Definition: alt_i2c.h:151
@ ALT_I2C_MODE_MASTER
Definition: alt_i2c.h:152
@ ALT_I2C_SPEED_FAST
Definition: alt_i2c.h:172
@ ALT_I2C_SPEED_STANDARD
Definition: alt_i2c.h:170
uint32_t alt_freq_t
Definition: alt_clock_manager.h:66
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
Definition: alt_i2c.h:124
uint32_t last_target
Definition: alt_i2c.h:127
void * location
Definition: alt_i2c.h:125
alt_freq_t clock_freq
Definition: alt_i2c.h:126
Definition: alt_i2c.h:528
uint16_t ss_scl_hcnt
Definition: alt_i2c.h:551
uint16_t ss_scl_lcnt
Definition: alt_i2c.h:555
ALT_I2C_SPEED_t speed_mode
Definition: alt_i2c.h:548
uint16_t fs_scl_hcnt
Definition: alt_i2c.h:559
ALT_I2C_ADDR_MODE_t addr_mode
Definition: alt_i2c.h:529
uint8_t fs_spklen
Definition: alt_i2c.h:567
bool restart_enable
Definition: alt_i2c.h:533
uint16_t fs_scl_lcnt
Definition: alt_i2c.h:563
Definition: alt_i2c.h:580
bool nack_enable
Definition: alt_i2c.h:588
ALT_I2C_ADDR_MODE_t addr_mode
Definition: alt_i2c.h:581
uint32_t addr
Definition: alt_i2c.h:584
I2C slave device control.
Definition: i2c.h:347
Definition: 8xx_immap.h:210