TWI_LCR Двухпроводной интерфейс: список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 Unused Bits 31 : 6SCL_STATE Bit 5R 0x1 Current State of TWI_SCL SDA_STATE Bit 4R 0x1 Current State of TWI_SDAж SCL_CTL Bit 3R/W 0x1 TWI_SCL Line State Control Bit SCL_CTL_EN Bit 2R/W 0x0 TWI_SCL Line State Control Enable SDA_CTL Bit 1R/W 0x1 TWI_SDA Line State Control Bit SDA_CTL_EN Bit 0R/W 0x0 TWI_SDA Line State Control Enable Команда U-Boot для чтения регистра md 5002020 1md 5002420 1 md 5002820 1 md 5002c20 1 md 5003020 1 md 7081420 1 Bit fields structuretypedef union twi_lcr { struct { unsigned sda_ctl_en : 1; unsigned sda_ctl : 1; unsigned scl_ctl_en : 1; unsigned scl_ctl : 1; unsigned sda_state : 1; unsigned scl_state : 1; unsigned unused0 : 26; } b; unsigned long w; } TWI_LCR |