SDK  23.9.2
For IoT System Software Development
Public Member Functions | List of all members
nRF5xSPI Class Reference
Inheritance diagram for nRF5xSPI:
SPI

Public Member Functions

 nRF5xSPI (int8_t pinMosi, int8_t pinMiso, int8_t pinSck, void *addr=nullptr)
 
void begin (uint32_t frequency, BitOrder_t order, Mode_t mode)
 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 nRF5xSPI::transfer ( uint8_t  val)
virtual

데이터를 전송합니다.

Returns
수신 데이터

Implements SPI.


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