|
#define | SELECT_INVERT(pos, x) ( ( pos == 0 ) ? x : ( 8 - x ) ) |
|
#define | SELECT_ROTATE(pos, x, y) ( ( pos == 0 ) ? ( 10 * y + x ) : ( 10 * x + y ) ) |
|
#define | SELECT_INV_BYTE_POS(rotate, x) ( ( ( rotate & 0x11 ) == 0x11 || ( rotate & 0x11 ) == 0x00 ) ? x : ( 9 - x ) ) |
|
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
◆ SELECT_INV_BYTE_POS
#define SELECT_INV_BYTE_POS |
( |
| rotate, |
|
|
| x ) ( ( ( rotate & 0x11 ) == 0x11 || ( rotate & 0x11 ) == 0x00 ) ? x : ( 9 - x ) ) |
◆ SELECT_INVERT
#define SELECT_INVERT |
( |
| pos, |
|
|
| x ) ( ( pos == 0 ) ? x : ( 8 - x ) ) |
◆ SELECT_ROTATE
#define SELECT_ROTATE |
( |
| pos, |
|
|
| x, |
|
|
| y ) ( ( pos == 0 ) ? ( 10 * y + x ) : ( 10 * x + y ) ) |