A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: wyc1541706480360
Ixiasoft
Visible to Intel only — GUID: wyc1541706480360
Ixiasoft
15.8.1. Optional Status Retrieval API
Prototype | void alt_avalon_i2c_master_target_get (ALT_AVALON_I2C_DEV_t * i2c_dev, alt_u32 * target_addr) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | - |
Description | This function returns the current target address. |
Prototype | void alt_avalon_i2c_master_config_get (ALT_AVALON_I2C_DEV_t *i2c_dev, ALT_AVALON_I2C_MASTER_CONFIG_t* cfg) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | - |
Description | Populates the host mode configuration structure (type ALT_AVALON_I2C_ADDR_MODE_t) from registers. |
Prototype | alt_avalon_i2c_master_config_speed_get (ALT_AVALON_I2C_DEV_t *i2c_dev, const ALT_AVALON_I2C_MASTER_CONFIG_t* cfg, alt_u32 * speed_in_hz) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | ALT_AVALON_I2C_SUCCESS - Indicates successful status. Otherwise, one of the ALT_AVALON_I2C_* status codes is returned. All failing return values are < 0. |
Description | This utility function returns the speed in hertz (Hz) based on the contents of the passed in configuration structure. |
Prototype | void alt_avalon_i2c_int_status_get (ALT_AVALON_I2C_DEV_t *i2c_dev, alt_u32 *status) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | - |
Description | This function returns the current value of the I2C controller interrupt status register value which reflects the current I2C controller status conditions that are not disabled (or masked). |
Prototype | void alt_avalon_i2c_int_raw_status_get (ALT_AVALON_I2C_DEV_t *i2c_dev, alt_u32 *status) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | - |
Description | This function returns the current value of the I2C controller raw interrupt status register value which reflects the current I2C controller status conditions regardless of whether they are disabled/masked or not. |
Prototype | void alt_avalon_i2c_tfr_cmd_fifo_threshold_get (ALT_AVALON_I2C_DEV_t *i2c_dev, ALT_AVALON_I2C_TFR_CMD_FIFO_THRESHOLD_t *threshold) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
Returns | - |
Description | Gets the current Transfer Command FIFO threshold level value. |
Prototype | void alt_avalon_i2c_rx_fifo_threshold_get (ALT_AVALON_I2C_DEV_t *i2c_dev, ALT_AVALON_I2C_RX_DATA_FIFO_THRESHOLD_t *threshold) |
Include | <altera_avalon_i2c.h> |
Parameters |
|
voidReturns | - |
Description | Gets the current receive FIFO threshold level value. |