Lines Matching refs:tbuf
86 std::vector<uint8_t> tbuf; in checkId() local
89 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in checkId()
90 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
113 tbuf = buildByteVector(idCmd); in checkId()
116 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
147 std::vector<uint8_t> tbuf; in unlockPasswordProtection() local
150 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in unlockPasswordProtection()
151 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockPasswordProtection()
157 tbuf = buildByteVector(MP5998Cmd::passwordReg, passwordData); in unlockPasswordProtection()
158 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockPasswordProtection()
164 tbuf = buildByteVector(PMBusCmd::statusCML); in unlockPasswordProtection()
166 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockPasswordProtection()
179 std::vector<uint8_t> tbuf; in unlockWriteProtection() local
182 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in unlockWriteProtection()
183 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtection()
189 tbuf = buildByteVector(PMBusCmd::writeProtect, unlockData); in unlockWriteProtection()
190 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtection()
208 std::vector<uint8_t> tbuf = in programAllRegisters() local
211 if (!i2cInterface.sendReceive(tbuf, rbuf)) in programAllRegisters()
219 std::vector<uint8_t> tbuf; in programAllRegisters() local
222 tbuf.push_back(regData.addr); in programAllRegisters()
226 tbuf.push_back(regData.data[i]); in programAllRegisters()
229 if (!i2cInterface.sendReceive(tbuf, rbuf)) in programAllRegisters()
243 std::vector<uint8_t> tbuf; in storeMTP() local
246 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in storeMTP()
247 if (!i2cInterface.sendReceive(tbuf, rbuf)) in storeMTP()
253 tbuf = buildByteVector(PMBusCmd::storeUserCode); in storeMTP()
254 if (!i2cInterface.sendReceive(tbuf, rbuf)) in storeMTP()
268 std::vector<uint8_t> tbuf = buildByteVector(PMBusCmd::statusCML); in waitForMTPComplete() local
272 if (!i2cInterface.sendReceive(tbuf, rbuf)) in waitForMTPComplete()
310 std::vector<uint8_t> tbuf; in getCRC() local
313 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in getCRC()
314 if (!i2cInterface.sendReceive(tbuf, rbuf)) in getCRC()
320 tbuf = buildByteVector(MP5998Cmd::crcUser); in getCRC()
322 if (!i2cInterface.sendReceive(tbuf, rbuf)) in getCRC()
335 std::vector<uint8_t> tbuf; in sendRestoreMTPCommand() local
338 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in sendRestoreMTPCommand()
339 if (!i2cInterface.sendReceive(tbuf, rbuf)) in sendRestoreMTPCommand()
345 tbuf = buildByteVector(PMBusCmd::restoreUserAll); in sendRestoreMTPCommand()
346 if (!i2cInterface.sendReceive(tbuf, rbuf)) in sendRestoreMTPCommand()
357 std::vector<uint8_t> tbuf; in checkEEPROMFaultAfterRestore() local
360 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in checkEEPROMFaultAfterRestore()
361 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkEEPROMFaultAfterRestore()
367 tbuf = buildByteVector(PMBusCmd::statusCML); in checkEEPROMFaultAfterRestore()
369 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkEEPROMFaultAfterRestore()