PIDUINO
Loading...
Searching...
No Matches
Piduino::SpiDev::Cs

Broche de chip select d'un bus SPI. More...

#include <spidev.h>

Collaboration diagram for Piduino::SpiDev::Cs:

Public Member Functions

 Cs ()
 
int id () const
 
Pinpin () const
 
Pin::Mode mode () const
 
bool driverControl () const
 
bool activeLevel () const
 
bool setDriverControl (bool enable=false, bool activeLevel=false)
 
bool get () const
 
void set (bool value)
 

Protected Member Functions

void setId (int value)
 
void setPin (Pin *value)
 
void setMode (Pin::Mode value)
 

Private Attributes

int _id
 
Pin_pin
 
Pin::Mode _mode
 
bool _driverControl
 
bool _activeLevel
 

Detailed Description

Broche de chip select d'un bus SPI.

Definition at line 77 of file spidev.h.

Constructor & Destructor Documentation

◆ Cs()

Piduino::SpiDev::Cs::Cs ( )
inline

Definition at line 81 of file spidev.h.

Member Function Documentation

◆ activeLevel()

bool Piduino::SpiDev::Cs::activeLevel ( ) const
inline

Definition at line 100 of file spidev.h.

References _activeLevel.

◆ driverControl()

bool Piduino::SpiDev::Cs::driverControl ( ) const
inline

Definition at line 96 of file spidev.h.

References _driverControl.

◆ get()

bool Piduino::SpiDev::Cs::get ( ) const

◆ id()

int Piduino::SpiDev::Cs::id ( ) const
inline

Definition at line 84 of file spidev.h.

References _id.

◆ mode()

Pin::Mode Piduino::SpiDev::Cs::mode ( ) const
inline

Definition at line 92 of file spidev.h.

References _mode.

◆ pin()

Pin * Piduino::SpiDev::Cs::pin ( ) const
inline

Definition at line 88 of file spidev.h.

References _pin.

◆ set()

void Piduino::SpiDev::Cs::set ( bool  value)

◆ setDriverControl()

bool Piduino::SpiDev::Cs::setDriverControl ( bool  enable = false,
bool  activeLevel = false 
)

◆ setId()

void Piduino::SpiDev::Cs::setId ( int  value)
inlineprotected

Definition at line 109 of file spidev.h.

References _id.

◆ setMode()

void Piduino::SpiDev::Cs::setMode ( Pin::Mode  value)
inlineprotected

Definition at line 115 of file spidev.h.

References _mode.

◆ setPin()

void Piduino::SpiDev::Cs::setPin ( Pin value)
inlineprotected

Definition at line 112 of file spidev.h.

References _pin.

Member Data Documentation

◆ _activeLevel

bool Piduino::SpiDev::Cs::_activeLevel
private

Definition at line 124 of file spidev.h.

Referenced by activeLevel().

◆ _driverControl

bool Piduino::SpiDev::Cs::_driverControl
private

Definition at line 123 of file spidev.h.

Referenced by driverControl().

◆ _id

int Piduino::SpiDev::Cs::_id
private

Definition at line 120 of file spidev.h.

Referenced by id(), and setId().

◆ _mode

Pin::Mode Piduino::SpiDev::Cs::_mode
private

Definition at line 122 of file spidev.h.

Referenced by mode(), and setMode().

◆ _pin

Pin* Piduino::SpiDev::Cs::_pin
private

Definition at line 121 of file spidev.h.

Referenced by pin(), and setPin().