Communication.h 353 B

12345678910111213141516171819202122
  1. #ifndef __COMMUNICATION_H__
  2. #define __COMMUNICATION_H__
  3. #include <stdint.c>
  4. typedef struct{
  5. uint8_t pin;
  6. }SPI_Handler;
  7. SPI_Handler my_spi;
  8. /**
  9. * Fonction d'initialisation du SPI_init
  10. * Param : pin pin du ship select
  11. */
  12. void SPI_init( uint8_t pin );
  13. void SPI_send(uint8_t *data, uin8_t len);
  14. void SPI_receive(uint8_t *data, uin8_t len);
  15. #endif