42 #ifndef _TUSB_STD_REQUEST_H_
43 #define _TUSB_STD_REQUEST_H_
49 typedef ATTR_PACKED_STRUCT(
struct){
51 ATTR_PACKED_STRUCT(
struct) {
52 uint8_t recipient : 5;
54 uint8_t direction : 1;
56 uint8_t bmRequestType;
69 static inline uint8_t bm_request_type(uint8_t direction, uint8_t type, uint8_t recipient)
71 return ((uint8_t) (direction << 7)) | ((uint8_t) (type << 5)) | (recipient);
Definition: std_request.h:49
#define ATTR_ALWAYS_INLINE
Generally, functions are not inlined unless optimization is specified. For functions declared inline...
Definition: compiler_gcc.h:89
#define ATTR_CONST
Many functions do not examine any values except their arguments, and have no effects except the retur...
Definition: compiler_gcc.h:100