Search:

Type: Posts; User: james007

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    10,801

    I am writing code for a microcontroller and I...

    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. ...
  2. Replies
    7
    Views
    10,801

    Hi, The function "Get_Element" is supposed to...

    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);
    ...
  3. Replies
    7
    Views
    10,801

    Thank you for your quick reply. I run into...

    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...
  4. Replies
    7
    Views
    10,801

    Pointer to a typedef struct

    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;
Results 1 to 4 of 4