Ejemplo n.º 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()));
}
Ejemplo n.º 2
0
void Transfer::onConnected()
{
    QSslSocket *socket = qobject_cast<QSslSocket*>(mSocket);
    if (socket) {
        if (mDirection == TransferModel::Send) {
            socket->startClientEncryption();
        } else {
            socket->startServerEncryption();
        }
    } else {
        initTransfer();
    }
}
Ejemplo n.º 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();
}