|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
46 static void flash_port (
const Port::Mask firstPin,
const uint8_t portWidth,
const uint16_t iterations = 10) {
57 this->m_firstPinNum = 0;
89 this->m_mask =
static_cast<uint32_t
>(firstPin);
95 this->m_mask |= this->m_mask << 1;
121 uint8_t m_firstPinNum;
static uint8_t from_mask(const Mask mask)
Determine which pin number based on a pin mask.
uint32_t read_fast() const
Allow easy reading of only selected pins from a port.
void set_mask(const PropWare::Port::Mask firstPin, uint8_t portWidth)
Configure a port's bit-mask.
SimplePort(const PropWare::Port::Mask firstPin, uint8_t portWidth, const PropWare::Port::Dir direction)
Initialize a port and configures its bit-mask and direction.
void write(uint32_t value) const
Allow easy writing to a port w/o destroying data elsewhere in the port; A shift is performed before w...
SimplePort(const PropWare::Port::Mask firstPin, uint8_t portWidth)
Initialize a port and configures its bit-mask.
static void flash_port(const uint32_t pinMask, unsigned int iterations=10)
Great for quick debugging to ensure a line of code is executed, this will quickly flash a given set o...
void set_dir(const PropWare::Port::Dir direction) const
Set port as either input or output.
static void flash_port(const Port::Mask firstPin, const uint8_t portWidth, const uint16_t iterations=10)
Great for quick debugging to ensure a line of code is executed, this will quickly flash a given set o...
uint32_t read() const
Allow easy reading of only selected pins from a port.
void write_fast(const uint32_t value) const
Allow easy writing to a port w/o destroying data elsewhere in the port; No shift is performed to alig...
Flexible port that can have any pin enabled or disabled. Pins are independent of each other.
The PropWare::SimplePort is the recommended way to use data ports on the Propeller....
Generic definitions and functions for the Parallax Propeller.