Into

Modules

Documentation

classPiiDefaultIoChannel

#include <PiiDefaultIoChannel.h>

The default implementation of the PiiIoChannel-interface for input/output channels.

Inherits PiiIoChannel

Inherited by PiiMultiCamIoChannel

Description

Classes

class

Properties

bool

Maybe we wan't to decide what is an active state of the pulse.

int

Get index of the channel.

The mode of an channel can assume five differenct values:

The name of the channel.

int

Returns the current state of the channel.

int

Initial delay of an output pulse, in milliseconds.

int

The width of an output pulse in milliseconds.

bool

Enable input signal.

Public types

enum
{ NoMode, TransitionInput, PulseInput, TransitionOutput, PulseOutput }

Channel mode.

Constructors and destructor

( )

Public member functions

bool
virtual void

Change output state.

int

Get a channel index.

virtual void

Check input change.

( )

Get a parent driver.

int
int
virtual void
(
  • double value = 0
)

Send output signal.

void
(
  • bool activeState
)

Get and set active state.

void
( )

Get and set channel mode.

void
( )

Get and set channel name.

void
(
  • int pulseDelay
)

Get and set pulse delay.

void
(
  • int pulseWidth
)

Get and set pulse width.

void
(
  • bool signalEnabled
)

Get and set signal enabled flag.

bool

Protected member functions

virtual void
( )  = 0

Check that channel mode is okay.

( )

Property details

  • bool activeState

    [read, write]

    Maybe we wan't to decide what is an active state of the pulse.

    This is the property where you can change the polarity of the channel state. True means, that channel is 1-active and false means that channel is 0-active.

  • int channel

    [read]

    Get index of the channel.

  • ChannelMode channelMode

    [read, write]

    The mode of an channel can assume five differenct values:

    • NoMode - the default state.

    • TransitionInput - notice all transitions.

    • PulseInput - notice only pulses.

    • TransitionOutput - change the output state.

    • PulseOutput - emit the pulse depends on pulseWidth and pulseDelay. If pulseWidth == 0, then this output requires acknowledgment. It means that we only take the output to the High and it is user responsibility to acknowledge the output to Low.

  • QString channelName

    [read, write]

    The name of the channel.

  • int currentState

    [read]

    Returns the current state of the channel.

  • int pulseDelay

    [read, write]

    Initial delay of an output pulse, in milliseconds.

    This property is effective in TransitionOutput and PulseOutput modes.

  • int pulseWidth

    [read, write]

    The width of an output pulse in milliseconds.

    This property is effective only if the channel is in PulseOutput mode. 0 means that output requires acknowledgement.

  • bool signalEnabled

    [read, write]

    Enable input signal.

    Do nothing if type of this channel is Output.

Enumeration details

  • enum ChannelMode

    Channel mode.

Function details

  • PiiDefaultIoChannel

    ( )
    [protected]
  • ~PiiDefaultIoChannel

    ()
  • bool activeState

    ()
  • virtual void changeOutputState

    (
    • bool
    )
    [inline, virtual]

    Change output state.

    Reimplemented from PiiIoChannel.

  • int channelIndex

    ()

    Get a channel index.

  • ChannelMode channelMode

    ()
  • QString channelName

    ()
  • virtual void checkInputChange

    ()
    [virtual]

    Check input change.

    If the current state is changed, we will emit signalReceived() -signal.

    Reimplemented from PiiIoChannel.

  • PiiDefaultIoDriver * driver

    ()

    Get a parent driver.

  • int pulseDelay

    ()
  • int pulseWidth

    ()
  • virtual void sendSignal

    (
    • double value = 0
    )
    [virtual]

    Send output signal.

    Reimplemented from PiiIoChannel.

  • void setActiveState

    (
    • bool activeState
    )

    Get and set active state.

  • void setChannelMode

    ( )

    Get and set channel mode.

  • void setChannelName

    ( )

    Get and set channel name.

  • void setPulseDelay

    (
    • int pulseDelay
    )

    Get and set pulse delay.

  • void setPulseWidth

    (
    • int pulseWidth
    )

    Get and set pulse width.

  • void setSignalEnabled

    (
    • bool signalEnabled
    )

    Get and set signal enabled flag.

  • bool signalEnabled

    ()
  • virtual void checkMode

    ()
    [protected, pure virtual]

    Check that channel mode is okay.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.