Prusa MINI Firmware overview
SPIclass< MisoPin, MosiPin, SckPin > Class Template Reference

#include <private_spi.h>

Static Public Member Functions

static FORCE_INLINE void init ()
 
static FORCE_INLINE void send (uint8_t data)
 
static FORCE_INLINE uint8_t receive ()
 

Detailed Description

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
class SPIclass< MisoPin, MosiPin, SckPin >

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Member Function Documentation

◆ init()

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
static FORCE_INLINE void SPIclass< MisoPin, MosiPin, SckPin >::init ( )
static
31 { softSPI.begin(); }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send()

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
static FORCE_INLINE void SPIclass< MisoPin, MosiPin, SckPin >::send ( uint8_t  data)
static
32 { softSPI.send(data); }
Here is the call graph for this function:

◆ receive()

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
static FORCE_INLINE uint8_t SPIclass< MisoPin, MosiPin, SckPin >::receive ( )
static
33 { return softSPI.receive(); }
Here is the call graph for this function:
SoftSPI::send
FORCE_INLINE void send(uint8_t data)
Definition: softspi.h:688
data
uint8_t data[8]
Definition: masstorage.h:49
SoftSPI::receive
FORCE_INLINE uint8_t receive()
Definition: softspi.h:671
SoftSPI::begin
void begin()
Definition: softspi.h:661