AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
NTV2RegInfo Class Reference

Everything needed to call CNTV2Card::ReadRegister or CNTV2Card::WriteRegister functions. More...

#include <ntv2publicinterface.h>

Public Member Functions

 NTV2RegInfo (const ULWord inRegNum=0, const ULWord inValue=0, const ULWord inMask=0xFFFFFFFF, const ULWord inShift=0)
 Constructs me from the given parameters. More...
 
void Set (const ULWord inRegNum, const ULWord inValue, const ULWord inMask=0xFFFFFFFF, const ULWord inShift=0)
 Sets me from the given parameters. More...
 
void MakeInvalid (void)
 Invalidates me, setting my register number, value, mask and shift values to 0xFFFFFFFF. More...
 
bool IsValid (void) const
 
bool operator== (const NTV2RegInfo &inRHS) const
 
bool operator< (const NTV2RegInfo &inRHS) const
 
std::ostream & Print (std::ostream &outputStream, const bool inAsCode=false) const
 Renders me to the given output stream in a human-readable format. More...
 
std::ostream & PrintCode (std::ostream &outputStream, const int inRadix=16, const NTV2DeviceID inDeviceID=DEVICE_ID_INVALID) const
 Renders me to the given output stream as source code using a "WriteRegister" function call. More...
 
ULWord regNum (void) const
 
ULWord value (void) const
 
ULWord mask (void) const
 
ULWord shift (void) const
 
NTV2RegInfo & setRegNum (const ULWord val)
 
NTV2RegInfo & setValue (const ULWord val)
 
NTV2RegInfo & setMask (const ULWord val)
 
NTV2RegInfo & setShift (const ULWord val)
 

Public Attributes

ULWord registerNumber
 My register number to use in a ReadRegister or WriteRegister call. More...
 
ULWord registerValue
 My register value to use in a ReadRegister or WriteRegister call. More...
 
ULWord registerMask
 My register mask value to use in a ReadRegister or WriteRegister call. More...
 
ULWord registerShift
 My register shift value to use in a ReadRegister or WriteRegister call. More...
 

Detailed Description

Everything needed to call CNTV2Card::ReadRegister or CNTV2Card::WriteRegister functions.

Definition at line 4046 of file ntv2publicinterface.h.

Constructor & Destructor Documentation

◆ NTV2RegInfo()

NTV2RegInfo::NTV2RegInfo ( const ULWord  inRegNum = 0,
const ULWord  inValue = 0,
const ULWord  inMask = 0xFFFFFFFF,
const ULWord  inShift = 0 
)
inline

Constructs me from the given parameters.

Parameters
[in]inRegNumSpecifies the register number to use. If not specified, defaults to zero.
[in]inValueSpecifies the register value to use. If not specified, defaults to zero.
[in]inMaskSpecifies the bit mask to use. If not specified, defaults to 0xFFFFFFFF.
[in]inShiftSpecifies the shift to use. If not specified, defaults to zero.

Definition at line 4060 of file ntv2publicinterface.h.

Member Function Documentation

◆ IsValid()

bool NTV2RegInfo::IsValid ( void  ) const
inline
Returns
True if I'm considered "valid" – i.e. non-zero mask and < 32 bits of shift; or false if all my values are 0xFFFFFFFF, or if my mask is zero, or my shift > 31.

Definition at line 4088 of file ntv2publicinterface.h.

◆ MakeInvalid()

void NTV2RegInfo::MakeInvalid ( void  )
inline

Invalidates me, setting my register number, value, mask and shift values to 0xFFFFFFFF.

Definition at line 4081 of file ntv2publicinterface.h.

◆ mask()

ULWord NTV2RegInfo::mask ( void  ) const
inline

Definition at line 4126 of file ntv2publicinterface.h.

◆ operator<()

bool NTV2RegInfo::operator< ( const NTV2RegInfo &  inRHS) const
Returns
True if I'm less than the right-hand-side NTV2RegInfo.
Parameters
[in]inRHSSpecifies the right-hand-side NTV2RegInfo that will be compared to me.
Note
To synthesize the other comparison operators (!=, <=, >, >=), in client code, add "#include <utility>", and "using namespace std::rel_ops;".

Definition at line 3467 of file ntv2publicinterface.cpp.

◆ operator==()

bool NTV2RegInfo::operator== ( const NTV2RegInfo &  inRHS) const
inline
Returns
True if I'm identical to the right-hand-side NTV2RegInfo.
Parameters
[in]inRHSSpecifies the right-hand-side NTV2RegInfo that will be compared to me.
Note
To synthesize the other comparison operators (!=, <=, >, >=), in client code, add "#include <utility>", and "using namespace std::rel_ops;".

Definition at line 4097 of file ntv2publicinterface.h.

◆ Print()

ostream & NTV2RegInfo::Print ( std::ostream &  outputStream,
const bool  inAsCode = false 
) const

Renders me to the given output stream in a human-readable format.

Parameters
outputStreamSpecifies the output stream in which to Print my contents.
inAsCodeDeprecated as of SDK 16.0 – use PrintCode instead. Defaults to false. If true, renders me as source code.
Returns
The output stream.

Definition at line 3476 of file ntv2publicinterface.cpp.

◆ PrintCode()

ostream & NTV2RegInfo::PrintCode ( std::ostream &  outputStream,
const int  inRadix = 16,
const NTV2DeviceID  inDeviceID = DEVICE_ID_INVALID 
) const

Renders me to the given output stream as source code using a "WriteRegister" function call.

Parameters
outputStreamSpecifies the output stream to write into.
[in]inRadixOptionally specifies the radix to use for the my register value. Defaults to hexadecimal (base 16).
[in]inDeviceIDOptionally specifies the NTV2DeviceID for properly interpreting my register values.
Returns
The output stream.

Definition at line 3489 of file ntv2publicinterface.cpp.

◆ regNum()

ULWord NTV2RegInfo::regNum ( void  ) const
inline

Definition at line 4124 of file ntv2publicinterface.h.

◆ Set()

void NTV2RegInfo::Set ( const ULWord  inRegNum,
const ULWord  inValue,
const ULWord  inMask = 0xFFFFFFFF,
const ULWord  inShift = 0 
)
inline

Sets me from the given parameters.

Parameters
[in]inRegNumSpecifies the register number to use.
[in]inValueSpecifies the register value to use.
[in]inMaskSpecifies the bit mask to use. If not specified, defaults to 0xFFFFFFFF.
[in]inShiftSpecifies the shift to use. If not specified, defaults to zero.

Definition at line 4075 of file ntv2publicinterface.h.

◆ setMask()

NTV2RegInfo& NTV2RegInfo::setMask ( const ULWord  val)
inline

Definition at line 4130 of file ntv2publicinterface.h.

◆ setRegNum()

NTV2RegInfo& NTV2RegInfo::setRegNum ( const ULWord  val)
inline

Definition at line 4128 of file ntv2publicinterface.h.

◆ setShift()

NTV2RegInfo& NTV2RegInfo::setShift ( const ULWord  val)
inline

Definition at line 4131 of file ntv2publicinterface.h.

◆ setValue()

NTV2RegInfo& NTV2RegInfo::setValue ( const ULWord  val)
inline

Definition at line 4129 of file ntv2publicinterface.h.

◆ shift()

ULWord NTV2RegInfo::shift ( void  ) const
inline

Definition at line 4127 of file ntv2publicinterface.h.

◆ value()

ULWord NTV2RegInfo::value ( void  ) const
inline

Definition at line 4125 of file ntv2publicinterface.h.

Member Data Documentation

◆ registerMask

ULWord NTV2RegInfo::registerMask

My register mask value to use in a ReadRegister or WriteRegister call.

Definition at line 4049 of file ntv2publicinterface.h.

◆ registerNumber

ULWord NTV2RegInfo::registerNumber

My register number to use in a ReadRegister or WriteRegister call.

Definition at line 4047 of file ntv2publicinterface.h.

◆ registerShift

ULWord NTV2RegInfo::registerShift

My register shift value to use in a ReadRegister or WriteRegister call.

Definition at line 4050 of file ntv2publicinterface.h.

◆ registerValue

ULWord NTV2RegInfo::registerValue

My register value to use in a ReadRegister or WriteRegister call.

Definition at line 4048 of file ntv2publicinterface.h.


The documentation for this class was generated from the following files: