SpiService.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * SpiService.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include <Platform/IdfService.h>
14 
15 namespace Ethernet
16 {
20 class SpiService : public IdfService
21 {
22 public:
23  struct Config {
25  uint32_t clockSpeed = 16 * 1000000;
26  int8_t spiHost = -1;
29  };
30 
32 };
33 
34 } // namespace Ethernet
int8_t spiHost
Definition: SpiService.h:50
PHY configuration.
Definition: Ethernet.h:84
IdfService(PhyFactory &phyFactory)
Definition: IdfService.h:27
Ethernet::PhyConfig phy
Definition: SpiService.h:48
constexpr int8_t PIN_DEFAULT
Use default pin for platform.
Definition: Ethernet.h:54
int8_t chipSelectPin
Definition: SpiService.h:51
int8_t interruptPin
Definition: SpiService.h:52
uint32_t clockSpeed
Definition: SpiService.h:49
Definition: Dp83848.h:15