Opto HART Toolkit
A .NET/MONO toolkit for using Opto22 HART modules
 All Classes Namespaces Functions Properties Pages
Opto22.HART.HartConfig Struct Reference

Contains configuration variables for a single Opto22 HART I/O module channel. More...

Public Member Functions

void DefaultHartConfig ()
 Sets the properties of a HartConfig struct to good default values. More...
 

Properties

byte masterType [get, set]
 The module can be a Primary or Secondary master on the HART bus. More...
 
byte retryLimit [get, set]
 The number of times to retry after an error. More...
 
byte burstMode [get, set]
 Determines whether the module will report burst messages or not. More...
 
byte promiscuousMode [get, set]
 Determines whether the module will report messages addressed to/from other masters. More...
 
byte numberOfPreambles [get, set]
 The number of preambles that precede each message. More...
 

Detailed Description

Contains configuration variables for a single Opto22 HART I/O module channel.

Member Function Documentation

void Opto22.HART.HartConfig.DefaultHartConfig ( )

Sets the properties of a HartConfig struct to good default values.

Property Default Value
masterType 1
retryLimit 3
burstMode 1
promiscuousMode 0
numberOfPreambles 5

Property Documentation

byte Opto22.HART.HartConfig.masterType
getset

The module can be a Primary or Secondary master on the HART bus.

Valid Value Meaning
0 Secondary Master
1 Primary Master
byte Opto22.HART.HartConfig.retryLimit
getset

The number of times to retry after an error.

The module will attempt to resend a message after a failure (wiring fault, addressing fault, etc.). The total number of attempts before a NACK is generated is retryLimit + 1 because of the initial transmission attempt.

Allowed Values: 0-5

byte Opto22.HART.HartConfig.burstMode
getset

Determines whether the module will report burst messages or not.

Valid Value Meaning
0 Module will not report bursts
1 Module will report bursts
byte Opto22.HART.HartConfig.promiscuousMode
getset

Determines whether the module will report messages addressed to/from other masters.

Valid Value Meaning
0 Module will not report other master messages
1 Module will report other master messages
byte Opto22.HART.HartConfig.numberOfPreambles
getset

The number of preambles that precede each message.

Allowed Values: 5-20


The documentation for this struct was generated from the following file: