Prusa MINI Firmware overview
USBD_DEF_Exported_Macros
Collaboration diagram for USBD_DEF_Exported_Macros:

Macros

#define SWAPBYTE(addr)
 
#define LOBYTE(x)   ((uint8_t)(x & 0x00FF))
 
#define HIBYTE(x)   ((uint8_t)((x & 0xFF00) >>8))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define __ALIGN_END
 

Detailed Description

Macro Definition Documentation

◆ SWAPBYTE

#define SWAPBYTE (   addr)
Value:
(((uint16_t)(*((uint8_t *)(addr)))) + \
(((uint16_t)(*(((uint8_t *)(addr)) + 1))) << 8))

◆ LOBYTE

#define LOBYTE (   x)    ((uint8_t)(x & 0x00FF))

◆ HIBYTE

#define HIBYTE (   x)    ((uint8_t)((x & 0xFF00) >>8))

◆ MIN

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

◆ MAX

#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

◆ __ALIGN_END

#define __ALIGN_END
uint8_t
const uint8_t[]
Definition: 404_html.c:3