|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
34 static const Port::Mask
MOSI = Port::Mask::P0;
36 static const Port::Mask
MISO = Port::Mask::P1;
38 static const Port::Mask
SCLK = Port::Mask::P2;
40 static const Port::Mask
CS = Port::Mask::P5;
50 SPI spi = SPI::get_instance();
60 pwOut <<
"Welcome to the MAX6675 demo!\n";
65 pwOut.
printf(
"Temp: %u.%uC\n", data >> 2, (data & 0x3) * 25);
static const Port::Mask CS
void printf(const char fmt[], const T first, const Targs... remaining) const
Similar in functionality to the C-standard function printf.
SPI serial communications library; Core functionality comes from a dedicated assembly cog.
void always_set_spi_mode(const bool alwaysSetMode)
Choose whether to always set the SPI mode and bitmode before reading or writing to the chip; Useful w...
static const Port::Mask SCLK
Flexible port that can have any pin enabled or disabled. Pins are independent of each other.
#define CLKFREQ
Returns the current clock frequency.
static const Port::Mask MISO
PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
#define waitcnt(a)
Wait until system counter reaches a value.
#define CNT
The system clock count.
static const Port::Mask MOSI
uint16_t read()
Read data in fixed-point form.
K-type thermocouple amplifier driver using SPI communication for the Parallax Propeller.