Go to the documentation of this file.
32 #define TRACE_LEVEL TRACE_LEVEL_INFO
46 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
48 #define TRACE_DEBUG(...) fprintf(stderr, __VA_ARGS__)
49 #undef TRACE_DEBUG_ARRAY
50 #define TRACE_DEBUG_ARRAY(p, a, n) debugDisplayArray(stderr, p, a, n)
252 n =
sizeof(uint32_t);
257 n =
sizeof(uint32_t);
262 n =
sizeof(uint32_t);
267 n =
sizeof(uint32_t);
272 n =
sizeof(uint32_t);
278 n =
sizeof(uint32_t);
284 n =
sizeof(uint32_t);
304 n =
sizeof(uint32_t);
309 n =
sizeof(uint32_t);
314 n =
sizeof(uint32_t);
319 n =
sizeof(uint32_t);
332 n =
sizeof(uint32_t);
341 n =
sizeof(uint32_t);
510 message->statusBufferLength = 0;
511 message->statusBufferOffset = 0;
537 message->requestId = requestId;
543 message->maxPacketsPerTransfer = 1;
545 message->packetAlignmentFactor = 0;
578 message->requestId = requestId;
608 message->requestId = requestId;
667 message->requestId = requestId;
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
error_t rndisSendNotification(uint32_t notification)
Send RNDIS notification message.
#define RNDIS_HARDWARE_STATUS_READY
Response to a RNDIS Initialize message.
#define RNDIS_KEEPALIVE_CMPLT
#define OID_GEN_CURRENT_PACKET_FILTER
#define OID_802_3_CURRENT_ADDRESS
error_t rndisProcessInitializeMsg(const RndisInitializeMsg *message, size_t length)
Process RNDIS Initialize message.
error_t rndisProcessSetMsg(const RndisSetMsg *message, size_t length)
Process RNDIS Set message.
size_t encapsulatedRespLen
void rndisInit(void)
RNDIS core initialization.
#define OID_802_3_RCV_ERROR_ALIGNMENT
#define RNDIS_QUERY_CMPLT
USBD_HandleTypeDef USBD_Device
NetInterface * rndisDriverInterface
RNDIS Indicate Status message.
error_t rndisProcessQueryMsg(const RndisQueryMsg *message, size_t length)
Process RNDIS Query message.
#define RNDIS_KEEPALIVE_MSG
error_t rndisFormatIndicateStatusMsg(uint32_t status)
Format RNDIS Indicate Status message.
error_t rndisFormatKeepAliveCmplt(uint32_t requestId)
Format RNDIS Keep-Alive Cmplt message.
uint8_t encapsulatedResp[RNDIS_MAX_TRANSFER_SIZE]
#define OID_GEN_MEDIA_CONNECT_STATUS
Response to a RNDIS Query message.
#define RNDIS_DF_CONNECTIONLESS
#define OID_GEN_TRANSMIT_BLOCK_SIZE
#define macCopyAddr(destMacAddr, srcMacAddr)
Device notification message.
#define RNDIS_NOTIFICATION_EP
RNDIS (Remote Network Driver Interface Specification)
#define RNDIS_STATUS_SUCCESS
#define RNDIS_INDICATE_STATUS_MSG
Response to a RNDIS Keep-Alive message.
#define osMemcpy(dest, src, length)
error_t rndisFormatSetCmplt(uint32_t requestId, uint32_t status)
Format RNDIS Set Cmplt message.
#define OID_GEN_VENDOR_DESCRIPTION
#define RNDIS_INITIALIZE_MSG
#define OID_GEN_VENDOR_ID
#define OID_GEN_MAXIMUM_FRAME_SIZE
#define OID_GEN_MAXIMUM_SEND_PACKETS
error_t rndisFormatHaltMsg(void)
Format RNDIS Halt message.
error_t rndisProcessKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Process RNDIS Keep-Alive message.
#define OID_GEN_MAXIMUM_TOTAL_SIZE
#define RNDIS_RESET_CMPLT
#define OID_GEN_MEDIA_IN_USE
Response to a RNDIS Set message.
RNDIS Initialize message.
#define OID_GEN_HARDWARE_STATUS
error_t rndisFormatQueryCmplt(uint32_t requestId, uint32_t status, uint32_t length)
Format RNDIS Query Cmplt message.
#define OID_GEN_SUPPORTED_LIST
void rndisChangeState(RndisState newState)
Update RNDIS state.
error_t rndisFormatInitializeCmplt(uint32_t requestId)
Format RNDIS Initialize Cmplt message.
error_t macStringToAddr(const char_t *str, MacAddr *macAddr)
Convert a string representation of a MAC address to a binary MAC address.
#define RNDIS_VENDOR_DESCRIPTION
#define OID_802_3_PERMANENT_ADDRESS
#define RNDIS_NOTIFICATION_RESP_AVAILABLE
const uint32_t rndisSupportOidList[]
#define RNDIS_MAX_TRANSFER_SIZE
RNDIS (Remote Network Driver Interface Specification)
#define RNDIS_STATUS_FAILURE
#define RNDIS_MEDIUM_802_3
#define OID_802_3_MAXIMUM_LIST_SIZE
error_t rndisDumpMsg(const RndisMsg *message, size_t length)
Dump RNDIS message for debugging purpose.
error_t rndisProcessResetMsg(const RndisResetMsg *message, size_t length)
Process RNDIS Reset message.
#define OID_GEN_RECEIVE_BLOCK_SIZE
#define OID_802_3_XMIT_MORE_COLLISIONS
RndisContext rndisContext
@ RNDIS_STATE_INITIALIZED
#define OID_802_3_XMIT_ONE_COLLISION
#define OID_802_3_MULTICAST_LIST
#define RNDIS_MAJOR_VERSION
#define OID_GEN_LINK_SPEED
#define OID_GEN_MEDIA_SUPPORTED
@ RNDIS_STATE_UNINITIALIZED
Response to a RNDIS Reset message.
#define RNDIS_MEDIA_STATE_CONNECTED
error_t rndisProcessMsg(const RndisMsg *message, size_t length)
Process incoming RNDIS message.
error_t rndisFormatResetCmplt(void)
Format RNDIS Reset Cmplt message.
@ RNDIS_STATE_DATA_INITIALIZED
#define RNDIS_INITIALIZE_CMPLT
RNDIS Keep-Alive message.
error_t rndisProcessHaltMsg(const RndisHaltMsg *message, size_t length)
Process RNDIS Halt message.
#define RNDIS_MINOR_VERSION