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
Base Ethernet service for IDF SDK.
Definition: IdfService.h:25
IdfService(PhyFactory &phyFactory)
Definition: IdfService.h:27
SPI ethernet provider.
Definition: SpiService.h:21
Definition: Dp83848.h:16
constexpr int8_t PIN_DEFAULT
Use default pin for platform.
Definition: Ethernet.h:54
PHY configuration.
Definition: Ethernet.h:84
Definition: SpiService.h:23
Ethernet::PhyConfig phy
Definition: SpiService.h:24
int8_t chipSelectPin
Definition: SpiService.h:27
int8_t interruptPin
Definition: SpiService.h:28
int8_t spiHost
Definition: SpiService.h:26
uint32_t clockSpeed
Definition: SpiService.h:25