blob: 21a5eadc32c1024b3cafbe04c685828c1d0234eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Spi.h
*
* Created on: 16 Dec 2016
* Author: David
*/
#ifndef SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_
#define SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_
#include "spi.h"
namespace WizSpi
{
void Init();
void Stop();
void AssertSS();
void ReleaseSS();
void SendAddress(uint32_t addr);
uint8_t ReadByte();
void WriteByte(uint8_t b);
spi_status_t ReadBurst(uint8_t* rx_data, size_t len);
spi_status_t SendBurst(const uint8_t* tx_data, size_t len);
}
#endif /* SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_ */
|