Lines Matching refs:address
55 for (int address = 0x80; address <= 0xff; address += 0x02) {
56 if (Probe(address))
57 PRINT(("0x%02x ", address));
93 bool CI2CPort::Probe(int address)
97 return Read(address, buffer, sizeof(buffer));
100 bool CI2CPort::Write(int address, const char * buffer, int length)
102 if (Send(address, buffer, length, true, true) == length)
107 bool CI2CPort::Read(int address, char * buffer, int length)
109 if (Receive(address, buffer, length, true, true) == length)
114 bool CI2CPort::Write(int address, const char * buffer, int length, char * result, int reslen)
116 if (Send(address, buffer, length, true, false) == length)
117 if (Receive(address, result, reslen, true, true) == reslen)
122 int CI2CPort::Register(int address, int index)
126 if (Send(address, &value, sizeof(value), true, false) == sizeof(value)) {
127 if (Receive(address, &value, sizeof(value), true, true) == sizeof(value))
134 void CI2CPort::SetRegister(int address, int index, int value)
141 if (Send(address, buffer, sizeof(buffer), true, true) != sizeof(buffer))
145 int CI2CPort::Send(int address, const char * buffer, int length, bool start, bool stop)
154 // write address
155 fRadeon.SetRegister(C_RADEON_I2C_DATA, address & ~(1));
190 int CI2CPort::Receive(int address, char * buffer, int length, bool start, bool stop)
198 fRadeon.SetRegister(C_RADEON_I2C_DATA, address | 0x00000001);