AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
NTV2RegInfo Struct 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 inRegValue=0, const ULWord inRegMask=0xFFFFFFFF, const ULWord inRegShift=0)
 Constructs me from the given parameters. More...
 
void Set (const ULWord inRegNum, const ULWord inRegValue, const ULWord inRegMask=0xFFFFFFFF, const ULWord inRegShift=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...
 

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 3931 of file ntv2publicinterface.h.

Constructor & Destructor Documentation

◆ NTV2RegInfo()

NTV2RegInfo::NTV2RegInfo ( const ULWord  inRegNum = 0,
const ULWord  inRegValue = 0,
const ULWord  inRegMask = 0xFFFFFFFF,
const ULWord  inRegShift = 0 
)
inline

Constructs me from the given parameters.

Parameters
[in]inRegNumSpecifies the register number to use. If not specified, defaults to zero.
[in]inRegValueSpecifies the register value to use. If not specified, defaults to zero.
[in]inRegMaskSpecifies the bit mask to use. If not specified, defaults to 0xFFFFFFFF.
[in]inRegShiftSpecifies the shift to use. If not specified, defaults to zero.

Definition at line 3946 of file ntv2publicinterface.h.

Member Function Documentation

◆ IsValid()

bool NTV2RegInfo::IsValid ( void  ) const
inline
Returns
True if I'm considered "valid", or false if my register number, value, mask and shift values are all 0xFFFFFFFF.

Definition at line 3971 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 3966 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 3264 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 3978 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 3273 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 3286 of file ntv2publicinterface.cpp.

◆ Set()

void NTV2RegInfo::Set ( const ULWord  inRegNum,
const ULWord  inRegValue,
const ULWord  inRegMask = 0xFFFFFFFF,
const ULWord  inRegShift = 0 
)
inline

Sets me from the given parameters.

Parameters
[in]inRegNumSpecifies the register number to use.
[in]inRegValueSpecifies the register value to use.
[in]inRegMaskSpecifies the bit mask to use. If not specified, defaults to 0xFFFFFFFF.
[in]inRegShiftSpecifies the shift to use. If not specified, defaults to zero.

Definition at line 3961 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 3935 of file ntv2publicinterface.h.

◆ registerNumber

ULWord NTV2RegInfo::registerNumber

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

Definition at line 3933 of file ntv2publicinterface.h.

◆ registerShift

ULWord NTV2RegInfo::registerShift

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

Definition at line 3936 of file ntv2publicinterface.h.

◆ registerValue

ULWord NTV2RegInfo::registerValue

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

Definition at line 3934 of file ntv2publicinterface.h.


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