|
HALFRED
0.4.0
|
IODevice descriptor type definition. An IODevice object is actually a pointer to such structure.
#include <hali_iodevice.h>
Data Fields | |
| HALRESULT(* | Init )(IODevice iodevice) |
| HALRESULT(* | Deinit )(IODevice iodevice) |
| HALRESULT(* | IOCtl )(IODevice iodevice, unsigned int request, va_list args) |
| HALRESULT(* | EnableWrite )(IODevice iodevice) |
| HALRESULT(* | DisableWrite )(IODevice iodevice) |
| HALRESULT(* | EnableRead )(IODevice iodevice) |
| HALRESULT(* | DisableRead )(IODevice iodevice) |
| size_t(* | GetReadCount )(IODevice iodevice) |
| size_t(* | GetWriteSpace )(IODevice iodevice) |
| size_t(* | Write )(IODevice iodevice, const void *data, size_t size) |
| size_t(* | Read )(IODevice iodevice, void *data, size_t size) |
Initializes an IODevice, preparing it for operation. This function is directly called by IODEV_Init
| iodevice | IODevice to initialize |
Deitializes an IODevice, preparing it for operation. This function is directly called by IODEV_Deinit
| iodevice | IODevice to deinitialize |
Low level control function that allows to pass additional, possibly non-portable requests to an IODevice. This is the actual implementation of a IODEV_IOCtl function.
| iodevice | IODevice |
| request | request code |
| args | variable argument list |
Enables transmit path of an IODevice.
| iodevice | IODevice |
Disables transmit path of an IODevice.
| iodevice | IODevice |
Enables receive path of an IODevice.
| iodevice | IODevice |
Disables receive path of an IODevice.
| iodevice | IODevice |
| size_t(* IODeviceDesc::GetReadCount)(IODevice iodevice) |
Gets the number of bytes that are ready to be read from an IODevice.
| iodevice | IODevice |
| size_t(* IODeviceDesc::GetWriteSpace)(IODevice iodevice) |
Gets the number of bytes that can be written to an IODevice.
| iodevice | IODevice |
| size_t(* IODeviceDesc::Write)(IODevice iodevice, const void *data, size_t size) |
Writes data to an IODevice.
| iodevice | IODevice |
| data | data to write |
| size | size in bytes |
| size_t(* IODeviceDesc::Read)(IODevice iodevice, void *data, size_t size) |
Reads data from an IODevice.
| iodevice | IODevice |
| data | place where to store data |
| size | size in bytes |
1.8.7