Querying driver capabilities. More...

Detailed Description

Querying driver capabilities.

All drivers will respond to the universal request subtype, PLAYER_CAPABILITIES_REQ.

This request takes a data structure that defines the message type and subtype of the capability you wish to query. The driver will respond with a NACK if the capability is not supported and an ACK if it is.

The HANDLE_CAPABILITY_REQUEST macro (from driver.h) can be used to make this process simpler, an example call would be something like this at the start of ProcessMessage

HANDLE_CAPABILITY_REQUEST (position_id, resp_queue, hdr, data, PLAYER_MSGTYPE_REQ, PLAYER_CAPABILITIES_REQ);
HANDLE_CAPABILITY_REQUEST (position_id, resp_queue, hdr, data, PLAYER_MSGTYPE_CMD, PLAYER_POSITION2D_CMD_VEL);

Classes

struct  player_capabilities_req
 Structure containing a single capability request. More...
 

Macros

#define PLAYER_CAPABILITIES_REQ   255
 Capability request message type.
 
#define PLAYER_CAPABILTIES_REQ   255
 Capability request message type (Misspelled for backwards compatibility with v3.0.2 and earler, will be removed in v4.0)
 

Typedefs

typedef struct player_capabilities_req player_capabilities_req_t
 Structure containing a single capability request.