Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : ic_txflr

Description

Name: I2C Transmit FIFO Level Register

Size: TX_ABW + 1

Address Offset: 0x74

Read/Write Access: Read

This register contains the number of valid data

entries in the transmit FIFO buffer. It is cleared

whenever:

set in the IC_RAW_INTR_STAT register

The register increments whenever data is placed into

the transmit FIFO and decrements when data is

taken from the transmit FIFO.

Register Layout

Bits Access Reset Description
[6:0] R 0x0 ALT_I2C_TXFLR_TXFLR
[31:7] ??? 0x0 UNDEFINED

Field : txflr

Transmit FIFO Level.

Contains the number of valid data entries in the

transmit FIFO.

Reset value: 0x0

Field Access Macros:

#define ALT_I2C_TXFLR_TXFLR_LSB   0
 
#define ALT_I2C_TXFLR_TXFLR_MSB   6
 
#define ALT_I2C_TXFLR_TXFLR_WIDTH   7
 
#define ALT_I2C_TXFLR_TXFLR_SET_MSK   0x0000007f
 
#define ALT_I2C_TXFLR_TXFLR_CLR_MSK   0xffffff80
 
#define ALT_I2C_TXFLR_TXFLR_RESET   0x0
 
#define ALT_I2C_TXFLR_TXFLR_GET(value)   (((value) & 0x0000007f) >> 0)
 
#define ALT_I2C_TXFLR_TXFLR_SET(value)   (((value) << 0) & 0x0000007f)
 

Data Structures

struct  ALT_I2C_TXFLR_s
 

Macros

#define ALT_I2C_TXFLR_RESET   0x00000000
 
#define ALT_I2C_TXFLR_OFST   0x74
 
#define ALT_I2C_TXFLR_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_I2C_TXFLR_OFST))
 

Typedefs

typedef struct ALT_I2C_TXFLR_s ALT_I2C_TXFLR_t
 

Data Structure Documentation

struct ALT_I2C_TXFLR_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_I2C_TXFLR.

Data Fields
const uint32_t txflr: 7 ALT_I2C_TXFLR_TXFLR
uint32_t __pad0__: 25 UNDEFINED

Macro Definitions

#define ALT_I2C_TXFLR_TXFLR_LSB   0

The Least Significant Bit (LSB) position of the ALT_I2C_TXFLR_TXFLR register field.

#define ALT_I2C_TXFLR_TXFLR_MSB   6

The Most Significant Bit (MSB) position of the ALT_I2C_TXFLR_TXFLR register field.

#define ALT_I2C_TXFLR_TXFLR_WIDTH   7

The width in bits of the ALT_I2C_TXFLR_TXFLR register field.

#define ALT_I2C_TXFLR_TXFLR_SET_MSK   0x0000007f

The mask used to set the ALT_I2C_TXFLR_TXFLR register field value.

#define ALT_I2C_TXFLR_TXFLR_CLR_MSK   0xffffff80

The mask used to clear the ALT_I2C_TXFLR_TXFLR register field value.

#define ALT_I2C_TXFLR_TXFLR_RESET   0x0

The reset value of the ALT_I2C_TXFLR_TXFLR register field.

#define ALT_I2C_TXFLR_TXFLR_GET (   value)    (((value) & 0x0000007f) >> 0)

Extracts the ALT_I2C_TXFLR_TXFLR field value from a register.

#define ALT_I2C_TXFLR_TXFLR_SET (   value)    (((value) << 0) & 0x0000007f)

Produces a ALT_I2C_TXFLR_TXFLR register field value suitable for setting the register.

#define ALT_I2C_TXFLR_RESET   0x00000000

The reset value of the ALT_I2C_TXFLR register.

#define ALT_I2C_TXFLR_OFST   0x74

The byte offset of the ALT_I2C_TXFLR register from the beginning of the component.

#define ALT_I2C_TXFLR_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_I2C_TXFLR_OFST))

The address of the ALT_I2C_TXFLR register.

Typedef Documentation

The typedef declaration for register ALT_I2C_TXFLR.