Example #1
0
//HAL functions (for debugging only, direct ocp read/write, little endian data
uint Vocpfifo::read(uint adr)
{
	Vrequest<sp6adr> r(adr,0,1);
	initTransfer(0,r);
	doTransfer();
	return (*(getInbuf()->posPtr()));
}
void Transfer::onConnected()
{
    QSslSocket *socket = qobject_cast<QSslSocket*>(mSocket);
    if (socket) {
        if (mDirection == TransferModel::Send) {
            socket->startClientEncryption();
        } else {
            socket->startServerEncryption();
        }
    } else {
        initTransfer();
    }
}
Example #3
0
sp6data* Vocpfifo::writeBlock(uint /*adr*/, ts_t num)
{
	Vrequest<sp6adr> r(0,num,0);//adr has no meaning for ocpfifo
	initTransfer(0,r);
	return getBuffer()->posPtr();
}