Page 1 of 1

Can check for me program what wrong

Posted: 11 Mar 2022 15:19
by johnsonpay

Code: Select all

typedef enum{
   RESET_STATE,
   BUSY_STATE,
   READY_STATE,
   OP_COMPLETE_STATE
 } ICC_SPI_STATES;
//------------------------------------------------------------------------------
 
  typedef union{
   BYTE byte_data;

   struct{
      BOOL  ack:1;
      BOOL  err:1;
      BYTE  reserved:4;
      BYTE  state:2;
   };
} ICC_SPI_STATUS;

void main()  {
    ICC_SPI_STATUS *pStatus;

 }
 
Hi, Who can let me know what's wrong of my code, compiler show me undeclared identifier 'ICC_SPI_STATUS' in expression and Undeclared identifier 'pStatus' in expression.

Re: Can check for me program what wrong

Posted: 25 Mar 2022 10:21
by filip
Hi,

Which version of the compiler are you using ?

Regards,
Filip.