Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
Class List
Class Index
Class Hierarchy
Class Members
Static Public Member Functions
|
List of all members
SPIclass< MISO_PIN, MOSI_PIN, SCK_PIN > Class Template Reference
#include <
private_spi.h
>
Static Public Member Functions
static
FORCE_INLINE
void
init
()
static
FORCE_INLINE
uint8_t
receive
()
Member Function Documentation
◆
init()
static
FORCE_INLINE
void
SPIclass
<
MISO_PIN
,
MOSI_PIN
,
SCK_PIN
>::init
(
)
static
40
{
41
OUT_WRITE
(
SCK_PIN
,
LOW
);
42
OUT_WRITE
(
MOSI_PIN
,
HIGH
);
43
SET_INPUT_PULLUP
(
MISO_PIN
);
44
}
◆
receive()
static
FORCE_INLINE
uint8_t
SPIclass
<
MISO_PIN
,
MOSI_PIN
,
SCK_PIN
>::receive
(
)
static
45
{
46
#if defined(__AVR__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
47
SPDR = 0;
48
for
(;!
TEST
(SPSR, SPIF););
49
return
SPDR;
50
#else
51
return
spiRec
();
52
#endif
53
}
Here is the call graph for this function:
OUT_WRITE
#define OUT_WRITE(IO, V)
Definition:
fastio.h:108
LOW
#define LOW
Definition:
wiring_constants.h:70
spiRec
uint8_t spiRec()
SET_INPUT_PULLUP
#define SET_INPUT_PULLUP(IO)
Definition:
fastio.h:100
MISO_PIN
#define MISO_PIN
Definition:
spi_pins.h:58
SCK_PIN
#define SCK_PIN
Definition:
spi_pins.h:55
MOSI_PIN
#define MOSI_PIN
Definition:
spi_pins.h:61
HIGH
#define HIGH
Definition:
wiring_constants.h:71
TEST
#define TEST(n, b)
Definition:
macros.h:81
SPIclass< MISO_PIN, MOSI_PIN, SCK_PIN >
Generated by
1.8.16