block/RTC_I2C: description: Low-power I2C (Inter-Integrated Circuit) Controller. items: - name: SCL_LOW_PERIOD byte_offset: 0 fieldset: SCL_LOW_PERIOD - name: CTRL byte_offset: 4 fieldset: CTRL - name: DEBUG_STATUS byte_offset: 8 fieldset: DEBUG_STATUS - name: TIMEOUT byte_offset: 12 fieldset: TIMEOUT - name: SLAVE_ADDR byte_offset: 16 fieldset: SLAVE_ADDR - name: DATA byte_offset: 28 - name: INT_RAW byte_offset: 32 fieldset: INT_RAW - name: INT_CLR byte_offset: 36 fieldset: INT_CLR - name: INT_EN byte_offset: 40 - name: INT_ST byte_offset: 44 - name: SDA_DUTY byte_offset: 48 fieldset: SDA_DUTY - name: SCL_HIGH_PERIOD byte_offset: 56 fieldset: SCL_HIGH_PERIOD - name: SCL_START_PERIOD byte_offset: 64 fieldset: SCL_START_PERIOD - name: SCL_STOP_PERIOD byte_offset: 68 fieldset: SCL_STOP_PERIOD - name: CMD byte_offset: 72 fieldset: CMD fieldset/CMD: fields: - name: VAL description: Command content. bit_offset: 0 bit_size: 14 - name: DONE description: Bit is set by HW when command is done. bit_offset: 31 bit_size: 1 fieldset/CTRL: fields: - name: SDA_FORCE_OUT description: SDA is push-pull (1) or open-drain (0). bit_offset: 0 bit_size: 1 - name: SCL_FORCE_OUT description: SCL is push-pull (1) or open-drain (0). bit_offset: 1 bit_size: 1 - name: MS_MODE description: Master (1) or slave (0). bit_offset: 4 bit_size: 1 - name: TRANS_START description: Force to generate start condition. bit_offset: 5 bit_size: 1 - name: TX_LSB_FIRST description: Send LSB first. bit_offset: 6 bit_size: 1 - name: RX_LSB_FIRST description: Receive LSB first. bit_offset: 7 bit_size: 1 fieldset/DEBUG_STATUS: fields: - name: ACK_VAL description: The value of an acknowledge signal on the bus. bit_offset: 0 bit_size: 1 - name: SLAVE_RW description: When working as a slave, the value of R/W bit received. bit_offset: 1 bit_size: 1 - name: TIMED_OUT description: Transfer has timed out. bit_offset: 2 bit_size: 1 - name: ARB_LOST description: When working as a master, lost control of I2C bus. bit_offset: 3 bit_size: 1 - name: BUS_BUSY description: operation is in progress. bit_offset: 4 bit_size: 1 - name: SLAVE_ADDR_MATCH description: When working as a slave, whether address was matched. bit_offset: 5 bit_size: 1 - name: BYTE_TRANS description: 8 bit transmit done. bit_offset: 6 bit_size: 1 - name: MAIN_STATE description: state of the main state machine. bit_offset: 25 bit_size: 3 - name: SCL_STATE description: state of SCL state machine. bit_offset: 28 bit_size: 3 fieldset/INT_CLR: fields: - name: SLAVE_TRANS_COMPLETE_INT_CLR bit_offset: 4 bit_size: 1 - name: ARBITRATION_LOST_INT_CLR bit_offset: 5 bit_size: 1 - name: MASTER_TRANS_COMPLETE_INT_CLR bit_offset: 6 bit_size: 1 - name: TRANS_COMPLETE_INT_CLR bit_offset: 7 bit_size: 1 - name: TIME_OUT_INT_CLR bit_offset: 8 bit_size: 1 fieldset/INT_RAW: fields: - name: SLAVE_TRANS_COMPLETE_INT_RAW description: Slave accepted 1 byte and address matched. bit_offset: 3 bit_size: 1 - name: ARBITRATION_LOST_INT_RAW description: Master lost arbitration. bit_offset: 4 bit_size: 1 - name: MASTER_TRANS_COMPLETE_INT_RAW bit_offset: 5 bit_size: 1 - name: TRANS_COMPLETE_INT_RAW description: Stop condition has been detected interrupt raw status. bit_offset: 6 bit_size: 1 - name: TIME_OUT_INT_RAW description: time out interrupt raw status. bit_offset: 7 bit_size: 1 fieldset/SCL_HIGH_PERIOD: fields: - name: SCL_HIGH_PERIOD description: Number of FAST_CLK cycles for SCL to be high. bit_offset: 0 bit_size: 20 fieldset/SCL_LOW_PERIOD: fields: - name: SCL_LOW_PERIOD description: number of cycles that scl == 0. bit_offset: 0 bit_size: 25 fieldset/SCL_START_PERIOD: fields: - name: SCL_START_PERIOD description: Number of FAST_CLK cycles to wait before generating start condition. bit_offset: 0 bit_size: 20 fieldset/SCL_STOP_PERIOD: fields: - name: SCL_STOP_PERIOD description: Number of FAST_CLK cycles to wait before generating stop condition. bit_offset: 0 bit_size: 20 fieldset/SDA_DUTY: fields: - name: SDA_DUTY description: Number of FAST_CLK cycles SDA will switch after falling edge of SCL. bit_offset: 0 bit_size: 20 fieldset/SLAVE_ADDR: fields: - name: SLAVE_ADDR description: local slave address. bit_offset: 0 bit_size: 15 - name: _10BIT description: Set if local slave address is 10-bit. bit_offset: 31 bit_size: 1 fieldset/TIMEOUT: fields: - name: TIMEOUT description: Maximum number of FAST_CLK cycles that the transmission can take. bit_offset: 0 bit_size: 20