TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Functions | Variables
ui_types.h File Reference

Go to the source code of this file.

Macros

#define PRIMITIVE_CAT(x, y)   x ## y
 
#define CAT(x, y)   PRIMITIVE_CAT(x, y)
 
#define DEFINE_MESSAGE(name, p_a, p_b, p_c, p_d, p_e)
 

Functions

struct __attribute__ ((__packed__))
 
 DEFINE_MESSAGE (figure, _a, _b, _c, _d, _e)
 
 DEFINE_MESSAGE (line, _a, _b, _c, end_x, end_y)
 
 DEFINE_MESSAGE (rect, _a, _b, _c, end_x, end_y)
 
 DEFINE_MESSAGE (round, _a, _b, r, _d, _e)
 
 DEFINE_MESSAGE (ellipse, _a, _b, _c, rx, ry)
 
 DEFINE_MESSAGE (arc, start_angle, end_angle, _c, rx, ry)
 

Variables

MESSAGE_PACKED ui_interface_number_t
 
MESSAGE_PACKED ui_interface_string_t
 
MESSAGE_PACKED ui_frame_header_t
 
MESSAGE_PACKED ui_1_frame_t
 
MESSAGE_PACKED ui_2_frame_t
 
MESSAGE_PACKED ui_5_frame_t
 
MESSAGE_PACKED ui_7_frame_t
 
MESSAGE_PACKED ui_string_frame_t
 
MESSAGE_PACKED ui_delete_frame_t
 

Macro Definition Documentation

◆ CAT

#define CAT (   x,
 
)    PRIMITIVE_CAT(x, y)

◆ DEFINE_MESSAGE

#define DEFINE_MESSAGE (   name,
  p_a,
  p_b,
  p_c,
  p_d,
  p_e 
)
Value:
typedef struct __attribute__((__packed__)) { \
uint8_t figure_name[3]; \
uint32_t operate_type:3; \
uint32_t figure_type:3; \
uint32_t layer:4; \
uint32_t color:4; \
uint32_t PRIMITIVE_CAT(,p_a) :9; \
uint32_t PRIMITIVE_CAT(,p_b):9; \
uint32_t width:10; \
uint32_t start_x:11; \
uint32_t start_y:11; \
uint32_t PRIMITIVE_CAT(,p_c):10; \
uint32_t PRIMITIVE_CAT(,p_d):11; \
uint32_t PRIMITIVE_CAT(,p_e):11; \
} MESSAGE_PACKED ui_interface_ ## name ##_t
#define PRIMITIVE_CAT(x, y)
Definition ui_types.h:56
struct __attribute__((__packed__))
Definition ui_types.h:25

◆ PRIMITIVE_CAT

#define PRIMITIVE_CAT (   x,
 
)    x ## y

Function Documentation

◆ __attribute__()

struct __attribute__ ( (__packed__)  )

◆ DEFINE_MESSAGE() [1/6]

DEFINE_MESSAGE ( arc  ,
start_angle  ,
end_angle  ,
_c  ,
rx  ,
ry   
)

◆ DEFINE_MESSAGE() [2/6]

DEFINE_MESSAGE ( ellipse  ,
_a  ,
_b  ,
_c  ,
rx  ,
ry   
)

◆ DEFINE_MESSAGE() [3/6]

DEFINE_MESSAGE ( figure  ,
_a  ,
_b  ,
_c  ,
_d  ,
_e   
)

◆ DEFINE_MESSAGE() [4/6]

DEFINE_MESSAGE ( line  ,
_a  ,
_b  ,
_c  ,
end_x  ,
end_y   
)

◆ DEFINE_MESSAGE() [5/6]

DEFINE_MESSAGE ( rect  ,
_a  ,
_b  ,
_c  ,
end_x  ,
end_y   
)

◆ DEFINE_MESSAGE() [6/6]

DEFINE_MESSAGE ( round  ,
_a  ,
_b  ,
,
_d  ,
_e   
)

Variable Documentation

◆ ui_1_frame_t

MESSAGE_PACKED ui_1_frame_t

◆ ui_2_frame_t

MESSAGE_PACKED ui_2_frame_t

◆ ui_5_frame_t

MESSAGE_PACKED ui_5_frame_t

◆ ui_7_frame_t

MESSAGE_PACKED ui_7_frame_t

◆ ui_delete_frame_t

MESSAGE_PACKED ui_delete_frame_t

◆ ui_frame_header_t

MESSAGE_PACKED ui_frame_header_t

◆ ui_interface_number_t

MESSAGE_PACKED ui_interface_number_t

◆ ui_interface_string_t

MESSAGE_PACKED ui_interface_string_t

◆ ui_string_frame_t

MESSAGE_PACKED ui_string_frame_t