I am writing code for a microcontroller and I want it to execute as fast as possible. Using "Array[1].b" would work perfectly, but it would involve some mulitply operations when the code compiles. ...
Type: Posts; User: james007
I am writing code for a microcontroller and I want it to execute as fast as possible. Using "Array[1].b" would work perfectly, but it would involve some mulitply operations when the code compiles. ...
Hi,
The function "Get_Element" is supposed to return the value of an element of a specific index of the array.
For example, the function call:
Value = Get_Element(1, Element_B_Offset);
...
Thank you for your quick reply. I run into another incompatible type:
#define Element_A_Offset 0
#define Element_B_Offset 1
#define Element_C_Offset 2
#define Element_D_Offset 3
typedef...
Hi,
Please help me with this C syntax. I get a incompatible type warning with this:
typedef struct{
unsigned char a;
unsigned char b;
unsigned char c;
} TEST;