AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
NTV2SetRegisters Class Reference

This is used by the CNTV2Card::WriteRegisters function. More...

#include <ntv2publicinterface.h>

Collaboration diagram for NTV2SetRegisters:
[legend]

Public Member Functions

 NTV2SetRegisters (const NTV2RegWrites &inRegWrites=NTV2RegWrites())
 Constructs an NTV2SetRegisters struct from the given NTV2RegisterWrites collection. More...
 
bool ResetUsing (const NTV2RegWrites &inRegWrites)
 Resets me, starting over, now using the given NTV2RegisterNumberSet. More...
 
bool GetFailedRegisterWrites (NTV2RegWrites &outFailedRegWrites) const
 Returns an NTV2RegisterWrites built from my mOutBadRegInfos field. More...
 
 operator NTV2_HEADER * ()
 
ULWord GetRequestedRegisterCount (void) const
 
bool GetRequestedRegisterWrites (NTV2RegWrites &outRegWrites) const
 
ULWord GetNumFailedWrites (void) const
 
std::ostream & Print (std::ostream &inOutStream) const
 Prints a human-readable representation of me to the given output stream. More...
 
bool RPCEncode (NTV2_RPC_BLOB_TYPE &outBlob)
 
bool RPCDecode (const NTV2_RPC_BLOB_TYPE &inBlob, size_t &inOutIndex)
 

Public Attributes

NTV2_HEADER mHeader
 The common structure header – ALWAYS FIRST! More...
 
ULWord mInNumRegisters
 The number of NTV2RegInfo's to be set. More...
 
NTV2Buffer mInRegInfos
 Read-only array of NTV2RegInfo structs to be set. The SDK owns this memory. More...
 
ULWord mOutNumFailures
 The number of registers unsuccessfully written. More...
 
NTV2Buffer mOutBadRegIndexes
 Array of UWords containing index numbers of the register writes that failed. The SDK owns this memory. More...
 
NTV2_TRAILER mTrailer
 The common structure trailer – ALWAYS LAST! More...
 

Detailed Description

This is used by the CNTV2Card::WriteRegisters function.

Note
There is no need to access any of this structure's fields directly. Simply call the CNTV2Card instance's WriteRegisters function.
This struct uses a constructor to properly initialize itself. Do not use memset or bzero to initialize or "clear" it.

Definition at line 7469 of file ntv2publicinterface.h.

Constructor & Destructor Documentation

◆ NTV2SetRegisters()

NTV2SetRegisters::NTV2SetRegisters ( const NTV2RegWrites inRegWrites = NTV2RegWrites())

Constructs an NTV2SetRegisters struct from the given NTV2RegisterWrites collection.

Parameters
[in]inRegWritesAn ordered collection of NTV2ReadWriteRegisterSingle structs to be copied into my mInRegInfos field. If omitted, defaults to an empty collection.

Definition at line 3096 of file ntv2publicinterface.cpp.

Member Function Documentation

◆ GetFailedRegisterWrites()

bool NTV2SetRegisters::GetFailedRegisterWrites ( NTV2RegWrites outFailedRegWrites) const

Returns an NTV2RegisterWrites built from my mOutBadRegInfos field.

Parameters
[out]outFailedRegWritesReceives the list of failed writes.
Returns
True if successful; otherwise false.

Definition at line 3132 of file ntv2publicinterface.cpp.

◆ GetNumFailedWrites()

ULWord NTV2SetRegisters::GetNumFailedWrites ( void  ) const
inline

Definition at line 7506 of file ntv2publicinterface.h.

◆ GetRequestedRegisterCount()

ULWord NTV2SetRegisters::GetRequestedRegisterCount ( void  ) const
inline

Definition at line 7504 of file ntv2publicinterface.h.

◆ GetRequestedRegisterWrites()

bool NTV2SetRegisters::GetRequestedRegisterWrites ( NTV2RegWrites outRegWrites) const

Definition at line 3139 of file ntv2publicinterface.cpp.

◆ operator NTV2_HEADER *()

NTV2SetRegisters::operator NTV2_HEADER * ( )
inline
Returns
My address casted to an NTV2_HEADER pointer.

Definition at line 7502 of file ntv2publicinterface.h.

◆ Print()

ostream & NTV2SetRegisters::Print ( std::ostream &  inOutStream) const

Prints a human-readable representation of me to the given output stream.

Parameters
inOutStreamSpecifies the output stream to use.
Returns
A reference to the output stream.

Definition at line 3154 of file ntv2publicinterface.cpp.

◆ ResetUsing()

bool NTV2SetRegisters::ResetUsing ( const NTV2RegWrites inRegWrites)

Resets me, starting over, now using the given NTV2RegisterNumberSet.

Parameters
[in]inRegWritesAn ordered collection of NTV2ReadWriteRegisterSingle structs to be copied into my mInRegInfos field. If omitted, defaults to an empty collection.

Definition at line 3105 of file ntv2publicinterface.cpp.

◆ RPCDecode()

bool NTV2SetRegisters::RPCDecode ( const NTV2_RPC_BLOB_TYPE inBlob,
size_t &  inOutIndex 
)

Definition at line 3598 of file ntv2publicinterface.cpp.

◆ RPCEncode()

bool NTV2SetRegisters::RPCEncode ( NTV2_RPC_BLOB_TYPE outBlob)

Definition at line 3573 of file ntv2publicinterface.cpp.

Member Data Documentation

◆ mHeader

NTV2_HEADER NTV2SetRegisters::mHeader

The common structure header – ALWAYS FIRST!

Definition at line 7470 of file ntv2publicinterface.h.

◆ mInNumRegisters

ULWord NTV2SetRegisters::mInNumRegisters

The number of NTV2RegInfo's to be set.

Definition at line 7471 of file ntv2publicinterface.h.

◆ mInRegInfos

NTV2Buffer NTV2SetRegisters::mInRegInfos

Read-only array of NTV2RegInfo structs to be set. The SDK owns this memory.

Definition at line 7472 of file ntv2publicinterface.h.

◆ mOutBadRegIndexes

NTV2Buffer NTV2SetRegisters::mOutBadRegIndexes

Array of UWords containing index numbers of the register writes that failed. The SDK owns this memory.

Definition at line 7474 of file ntv2publicinterface.h.

◆ mOutNumFailures

ULWord NTV2SetRegisters::mOutNumFailures

The number of registers unsuccessfully written.

Definition at line 7473 of file ntv2publicinterface.h.

◆ mTrailer

NTV2_TRAILER NTV2SetRegisters::mTrailer

The common structure trailer – ALWAYS LAST!

Definition at line 7475 of file ntv2publicinterface.h.


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