Interfaces are an abstraction and implementations of asynchronous serial communication between adapters and hardware.
More...
|
#define | EWF_INTERFACE_STRUCT_MAGIC (0x017eface) /* ~~ i(n)te(r)face */ |
|
#define | EWF_INTERFACE_STRUCT_SIZE (sizeof(struct _ewf_interface)) |
|
#define | EWF_INTERFACE_VERSION (EWF_DEVELOPER_MICROSOFT | 0x0001) |
|
#define | EWF_INTERFACE_VALIDATE_POINTER(interface_ptr) |
|
#define | EWF_INTERFACE_VALIDATE_POINTER_TYPE(interface_ptr, interface_type) |
|
Interfaces are an abstraction and implementations of asynchronous serial communication between adapters and hardware.
Interface is short for Host Interface. This is a software driver that implements the software connection between a ** Network Adapter Driver ** (known simply as an ** adapter driver ** in the framework) and the ** Physical Network Adapter **. The Interface can serve as a raw interface for transferring data or provide advanced capabilities to parse a serial AT interface and buffer. Queuing is achieved by using Platform Queues. An interface has one or two associated queues: one for incoming Command Response Messages (or simply messages) and another for data. An interface has a status variable indicating if it is in command mode or not. When in command mode, incoming bytes are interpreted as responses to commands, until OK or an error response is received, then the interface switched to non command mode. In non command mode, the interface will interpret every received message as an Unrequested Return Code or URC.
◆ EWF_INTERFACE_VALIDATE_POINTER
#define EWF_INTERFACE_VALIDATE_POINTER |
( |
|
interface_ptr | ) |
|
Value:do { \
if ((interface_ptr == NULL) || \
(interface_ptr->implementation_ptr == NULL)) \
{ \
EWF_LOG_ERROR("The interface pointer is invalid."); \
} \
} while(0)
@ EWF_RESULT_INVALID_FUNCTION_ARGUMENT
Definition: ewf.h:69