19 #ifndef HARDWARE_SAM_SPI_H 20 #define HARDWARE_SAM_SPI_H 44 virtual void acquire(uint8_t mode, uint8_t bitorder, uint8_t scale)
58 __attribute__((always_inline))
72 virtual void transfer(
void* dest,
const void* src,
size_t count)
74 if (count == 0 || dest == NULL || src == NULL)
return;
83 virtual void read(
void* buf,
size_t count)
85 if (count == 0 || buf == NULL)
return;
94 virtual void write(
const void* buf,
size_t count)
96 if (count == 0 || buf == NULL)
return;
virtual void acquire(uint8_t mode, uint8_t bitorder, uint8_t scale)
virtual void transfer(void *dest, const void *src, size_t count)
virtual uint8_t transfer(uint8_t value)
virtual void write(const void *buf, size_t count)
virtual void read(void *buf, size_t count)