Lines Matching defs:buffer
95 char buffer[1];
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)
136 char buffer[2];
138 buffer[0] = index;
139 buffer[1] = 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)
159 fRadeon.SetRegister(C_RADEON_I2C_DATA, buffer[offset]);
190 int CI2CPort::Receive(int address, char * buffer, int length, bool start, bool stop)
228 buffer[offset] = fRadeon.Register(C_RADEON_I2C_DATA) & 0xff;