This makes sense.
Type: Posts; User: Supadude
This makes sense.
Yeah this works for this situation, but my actual implementation would be something more like.
typedef enum
{
BIN_TO_NMEA_MSG_ID = 0,
DISABLE_NMEA_DEBUG,
GGA_MSG_RATE,
Well what I am really trying to figure out is what is an efficient and non error prone way for packing serial streams of data? I will show you how I am doing it now:
#define...
Because with a struct you can name the elements of the array. Instead of having to figure out which byte offset corresponds to what value.
Could you elaborate on this?
So this shouldnt be done then. Is there any easy way to format large serial packets so that each byte doesnt have to be masked and packed individually?
If I define a struct as such:
struct mystruct
{
char one;
char two;
char three;
char four;
Hi, I have a good knowledge of C programming and a decent understanding of assembly. Im trying to learn more about embedded C programming and was wondering if anyone has any good resources I should...