Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/03/08 11:47
Read: times


 
#159554 - Hex byte stream
I have a C function that accepts a char pointer.

Prior to calling the function I manually populate the array with hex command values. The function once called writes the Hex commnand bytes to an SPI interface one by one. A typical command will be like this : 0x02 0x20 0x2E 0x2E 0x0D.

Is there any other way to populate the array instead of writing 5 statements as in the above case ?

Thanks

Raghu

List of 13 messages in thread
TopicAuthorDate
Hex byte stream            01/01/70 00:00      
   Declare an initialised array            01/01/70 00:00      
      why not in code memory???            01/01/70 00:00      
   yes, if...            01/01/70 00:00      
      Initialized array            01/01/70 00:00      
         memcpy            01/01/70 00:00      
            Thanks.            01/01/70 00:00      
         You can build your array dynamically            01/01/70 00:00      
            sprintf ??            01/01/70 00:00      
               Manuals?            01/01/70 00:00      
                  Perception            01/01/70 00:00      
                     Bandwidth of facts            01/01/70 00:00      
                        You will make a good master !            01/01/70 00:00      

Back to Subject List