|
This API call performs several different functions; these are described below.
The contents of the buffer after the call is dependent on the function code you specified.
Value | Meaning |
---|---|
canIOCTL_GET_RX_BUFFER_LEVEL | buf points at a DWORD which receives the current RX queue level. The returned value is approximative. |
canIOCTL_GET_TX_BUFFER_LEVEL | buf points at a DWORD which receives the current TX queue level. The returned value is approximative. |
canIOCTL_FLUSH_RX_BUFFER | Discard the current contents of the RX queue. The values of buf and buflen are ignored. |
canIOCTL_FLUSH_TX_BUFFER | Discard the current contents of the TX queue. The values of buf and buflen are ignored. |
canOK (zero) if success
canERR_xxx (negative) if failure.