Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Tricky SPI communication with request and response structure.

$
0
0
Hi Friends,

I have to implement a SPI request_response function for 8-bit microcontroller. This function has two arguments one is request command structure and other is response structure which is filled after getting response. Its 8-bytes i.e.,
Code (Text):
  1.  
  2. typdef struct{
  3. uint16_t data0;
  4. uint16_t data1;
  5. uint16_t data2;
  6. uint16_t data3;
  7. }data_st;
  8.  
  9. extern data_st *request;
  10. extern data_st *response;
  11.  
  12. request_response(&request, &response);
  13.  
There are 3-4 set of request and response. Which is...

Tricky SPI communication with request and response structure.

Viewing all articles
Browse latest Browse all 4922

Trending Articles