|
vs1053_avr_renesas_uno 0.1.0
Arduino Library for VS1053 shield
|
A handler for accessing bytes of a word. More...
#include <vs1053_avr_renesas_uno.h>
Public Attributes | |
| uint16_t | word |
| whole word value | |
| uint8_t | byte [2] |
| individual bytes | |
A handler for accessing bytes of a word.
Often individual bytes of a word are handled by bit shifting e.g.
This may lead to excessive shifts and worse; signed carries of the second shift, If the casting is not correct. This union allows a more efficient and simpler method to directly access the individual bytes of the word. And is convienent for handeling Endian issues. Where byte[0..1] can be assigned specific endian and the word (aka uint16_t) can be used.
Definition at line 827 of file vs1053_avr_renesas_uno.h.
| uint8_t twobyte::byte[2] |
individual bytes
allows access and handeling of individual uint8_t (aka bytes), either MSB or LSB byte of word
Definition at line 842 of file vs1053_avr_renesas_uno.h.
| uint16_t twobyte::word |
whole word value
allows access and handeling of whole uint16_t (aka word) value
Definition at line 834 of file vs1053_avr_renesas_uno.h.