2 Replies Latest reply on Jan 27, 2017 8:37 AM by asier_1604701

    Problem with array data pointer

    asier_1604701

      Hi,

         

      My example is next:

         

      unsigned char value=0x10;

         

      unsigned char* US_InQEnd;

         

      unsigned char US_InBuffer[3];

         

       

         

      Test_Write(1u);

         

      InQEnd = US_InBuffer;                 // getting buffer address

         

      *(US_InQEnd++) = value++;      // writing at buffer first location

         

      *(US_InQEnd++) = value++;      // writing at buffer second location

         

      *(US_InQEnd) = value++;           // writing at buffer third location

         

      Test_Write(0u);

         

       

         

      I can see Test pin getting up but not getting down. Is there any mistake ? 

         

      Thank you,

         

      Asier.