BlueNRG-MS pack for STM32CubeMX: includes/bluenrg_types.h Source File
From STM32CubeMX BlueNRG-MS
 |
BlueNRG-MS pack for STM32CubeMX
V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
|
Go to the documentation of this file. 16 #ifndef __BLUENRG_TYPES_H__ 17 #define __BLUENRG_TYPES_H__ 22 #define NULL ((void *)0) 25 #ifndef __LITTLE_ENDIAN 26 #define __LITTLE_ENDIAN 0 27 #define __BIG_ENDIAN 1 34 #if __BYTE_ORDER == __LITTLE_ENDIAN 39 #elif __BYTE_ORDER == __BIG_ENDIAN 40 #define htobs(d) (d<<8|d>>8) 41 #define htobl(d) (d<<24|((d<<8)&0x00ff0000)|((d>>8)&0x0000ff00)|((d>>24)&0x000000ff)) 42 #define btohs(d) (d<<8|d>>8) 43 #define btohl(d) (d<<24|((d<<8)&0x00ff0000)|((d>>8)&0x0000ff00)|((d>>24)&0x000000ff)) 45 #error "Unknown byte order" 61 #define PACKED __attribute__((packed)) uint8_t BOOL
Definition: bluenrg_types.h:48