Nol.A SDK Library  24.11.0
For IoT System Software Development
Public Member Functions | List of all members
SoftwareSPI Class Reference
Inheritance diagram for SoftwareSPI:
SPI

Public Member Functions

 SoftwareSPI (int8_t pinMosi, int8_t pinMiso, int8_t pinSck)
 
void begin (uint32_t freqHz=0xFFFFFFFFul, BitOrder_t order=MSBFIRST, Mode_t mode=MODE0)
 SPI 연결을 시작합니다.
 
void end ()
 SPI 연결을 종료합니다.
 
uint8_t transfer (uint8_t val)
 데이터를 전송합니다. More...
 
- Public Member Functions inherited from SPI
int getCPOL ()
 
int getCPHA ()
 

Additional Inherited Members

- Public Types inherited from SPI
enum  BitOrder_t { MSBFIRST = 0 , LSBFIRST = 1 }
 
enum  Mode_t { MODE0 = 0 , MODE1 = 1 , MODE2 = 2 , MODE3 = 3 }
 

Member Function Documentation

◆ transfer()

uint8_t SoftwareSPI::transfer ( uint8_t  val)
virtual

데이터를 전송합니다.

Returns
수신 데이터

Implements SPI.


The documentation for this class was generated from the following file: