[ C++ RCOS Home | RCOS.java Home | RCOS Home | David's Home ]
Name: |
TransQ |
Comment: |
for safety, we sub-class off the disk device transfer FIFO queue preventing the animator form doing anthing bad with queue data.. |
Collaborators: |
class TransQ { TreqstQ *pTQ; XfReq *pX; public: TransQ (TreqstQ *p) : pTQ(p) { } ~TransQ (void) { } void Peek (UINT16 n) { pX = pTQ->Peek(n); } UINT16 GetLen (void) { return pTQ->GetLen(); } UINT16 GetPid (void) { return pX->uProc; } UINT16 GetTrk (void) { return pX->nTrk; } UINT16 GetSec (void) { return pX->nSec; } UINT16 GetSid (void) { return pX->nSid; } BOOL IsRead (void) { return (pX->cmnd == DD_READ) ? TRUE : FALSE; } };