Created
February 15, 2024 04:59
-
-
Save AndreiCherniaev/0b18f1608af8c9774322879b88e58915 to your computer and use it in GitHub Desktop.
union uint8_16_t
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef union{ | |
uint16_t u16; | |
uint8_t u8s[2]; | |
}uint8_16_t; | |
const uint8_16_t val= {.u8s={0xAA, 0xBB}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment