winIDEA SDK
isys::CFNetmDIOCtrl Class Reference

Description

FNet mini Digital Input/Output controller (mDIO_AP).

Python example: fnet_mdio.py

#include <CFNetCtrl.h>

Inheritance diagram for isys::CFNetmDIOCtrl:
isys::CFNetIPCtrl isys::WrapperBase

Public Member Functions

SPOptionFNetmDIOCfg cfg ()
 Returns mDIO Option controller used for setting configuration. More...
 
bool ctrl_get_channel (const std::string &rstrChannelName)
 Get pin state of chosen channel. More...
 
bool ctrl_get_channel (const uint8_t nChannel)
 Get pin state of chosen channel. More...
 
void ctrl_set_channel (const std::string &rstrChannelName, const bool bHi)
 Set pin state of chosen channel. More...
 
void ctrl_set_channel (const uint8_t nChannel, const bool bHi)
 Set pin state of chosen channel. More...
 
void ctrl_start_pattern (const uint8_t nPatternIndex)
 Starts the specified pattern. More...
 
void ctrl_stop_pattern (const uint8_t nPatternIndex)
 Stops the specified pattern. More...
 
SPOptionFNetmDIOOp op ()
 Returns mDIO Option controller used for setting operation. More...
 
void op_qualifier_disable (uint8_t nFTrigDisable)
 Disables the trigger. More...
 
void op_qualifier_enable (uint8_t nFTrigEnable)
 Enables the trigger. More...
 
void op_qualifier_enable_on_start (bool bEnableFromStart)
 Enables the trigger from start. More...
 
void op_set_qualifier (bool bEnableFromStart, uint8_t nFTrigEnable, uint8_t nFTrigDisable)
 

Member Function Documentation

◆ cfg()

SPOptionFNetmDIOCfg isys::CFNetmDIOCtrl::cfg ( )

Returns mDIO Option controller used for setting configuration.

Returns
COptionFNetmDIOCfg

◆ ctrl_get_channel() [1/2]

bool isys::CFNetmDIOCtrl::ctrl_get_channel ( const std::string &  rstrChannelName)

Get pin state of chosen channel.

Parameters
rstrChannelName
Returns
bool channel state, true if High, false if Low

◆ ctrl_get_channel() [2/2]

bool isys::CFNetmDIOCtrl::ctrl_get_channel ( const uint8_t  nChannel)

Get pin state of chosen channel.

Parameters
nChannel
Returns
bool channel state, true if High, false if Low

◆ ctrl_set_channel() [1/2]

void isys::CFNetmDIOCtrl::ctrl_set_channel ( const std::string &  rstrChannelName,
const bool  bHi 
)

Set pin state of chosen channel.

Parameters
rstrChannelName
bHitrue to set the channel High, false to Low You can only set pin state if channel's bank is configured as output, otherwise this function call has no effect.

◆ ctrl_set_channel() [2/2]

void isys::CFNetmDIOCtrl::ctrl_set_channel ( const uint8_t  nChannel,
const bool  bHi 
)

Set pin state of chosen channel.

Parameters
nChannel
bHitrue to set the channel High, false to Low You can only set pin state if channel's bank is configured as output, otherwise this function call has no effect.

◆ ctrl_start_pattern()

void isys::CFNetmDIOCtrl::ctrl_start_pattern ( const uint8_t  nPatternIndex)

Starts the specified pattern.

Parameters
nPatternIndex

◆ ctrl_stop_pattern()

void isys::CFNetmDIOCtrl::ctrl_stop_pattern ( const uint8_t  nPatternIndex)

Stops the specified pattern.

Parameters
nPatternIndex

◆ op()

SPOptionFNetmDIOOp isys::CFNetmDIOCtrl::op ( )

Returns mDIO Option controller used for setting operation.

Returns
COptionFNetmDIOOp

◆ op_qualifier_disable()

void isys::CFNetIPCtrl::op_qualifier_disable ( uint8_t  nFTrigDisable)
inherited

Disables the trigger.

Parameters
nFTrigDisableset 0 for none, 1-10 inclusive for the specific trigger

◆ op_qualifier_enable()

void isys::CFNetIPCtrl::op_qualifier_enable ( uint8_t  nFTrigEnable)
inherited

Enables the trigger.

Parameters
nFTrigEnableset 0 for none, 1-10 inclusive for the specific trigger

◆ op_qualifier_enable_on_start()

void isys::CFNetIPCtrl::op_qualifier_enable_on_start ( bool  bEnableFromStart)
inherited

Enables the trigger from start.

Parameters
bEnableFromStartenable recording when it occurs

◆ op_set_qualifier()

void isys::CFNetIPCtrl::op_set_qualifier ( bool  bEnableFromStart,
uint8_t  nFTrigEnable,
uint8_t  nFTrigDisable 
)
inherited
Parameters
bEnableFromStartrecording is enabled at session start
nFTrigEnableset 0 for none, 1-10 inclusive for the specific trigger
nFTrigDisableset 0 for none, 1-10 inclusive for the specific trigger