![]() |
AJA NTV2 SDK
18.1.0.2439
NTV2 SDK 18.1.0.2439
|
Configure interrupt (subscribe/unsubscribe, enable/disable, query subscribed interrupts, query enabled interrupts, etc.). More...
#include <ntv2publicinterface.h>
Public Member Functions | |
| NTV2ConfigInterrupt (const void *pClient=nullptr) | |
| Default ctor, optionally set clientID if needed. More... | |
| ~NTV2ConfigInterrupt () | |
| Destructor. More... | |
| ULWord | operation (void) const |
| ULWord | flags (void) const |
| INTERRUPT_ENUMS | interruptID (void) const |
| uint64_t | interruptIDs (void) const |
| bool | isValid (void) const |
| operator bool () const | |
| bool | isSuccess (void) const |
| operator NTV2_HEADER * () | |
| std::ostream & | print (std::ostream &oss) const |
| prints a human-readable representation of me to the given output stream More... | |
| uint64_t | clientID (void) const |
| uint64_t | clientPID (void) const |
| uint64_t | clientTID (void) const |
| ULWord | count (void) const |
| size_t | maxHandleCapacity (void) const |
| HANDLE | eventHandle (const INTERRUPT_ENUMS id) const |
| bool | setEventHandle (const INTERRUPT_ENUMS id, HANDLE h) |
| bool | hasCreateHandleFlag (void) const |
| bool | hasIncludeGlobalsFlag (void) const |
| NTV2ConfigInterrupt & | doSubscribe (const INTERRUPT_ENUMS id) |
| Create event handle and subscribe it to given interruptID. More... | |
| NTV2ConfigInterrupt & | doSubscribeEvent (const INTERRUPT_ENUMS id, const HANDLE &hdl) |
| Subscribe given HANDLE for interruptID. More... | |
| NTV2ConfigInterrupt & | doUnsubscribe (const INTERRUPT_ENUMS id) |
| Unsubscribe local HANDLE from given interruptID. More... | |
| NTV2ConfigInterrupt & | doEnable (const INTERRUPT_ENUMS id) |
| Enable given interruptID. More... | |
| NTV2ConfigInterrupt & | doDisable (const INTERRUPT_ENUMS id) |
| Disable given interruptID. More... | |
| NTV2ConfigInterrupt & | doGetCount (const INTERRUPT_ENUMS id) |
| Get interruptID count. More... | |
| NTV2ConfigInterrupt & | doSetCount (const INTERRUPT_ENUMS id, const ULWord cnt=0) |
| Set interruptID count. More... | |
| NTV2ConfigInterrupt & | doGetSubscribed (const bool includeHdls=false) |
| Retrieve subscribed interrupt IDs + count of them (+ optional event HANDLEs) More... | |
| NTV2ConfigInterrupt & | setResult (const ULWord val) |
| Sets my mResult. More... | |
| NTV2ConfigInterrupt & | setFail (void) |
| Zeroes my mResult (indicating failure) More... | |
| NTV2ConfigInterrupt & | setSuccess (void) |
| Sets my mResult to 1 (non-zero indicates success) More... | |
| NTV2ConfigInterrupt & | setClientID (const uint64_t id) |
| Sets my mClientID. More... | |
| NTV2ConfigInterrupt & | setCount (const ULWord val) |
| Sets my mCount. More... | |
| NTV2ConfigInterrupt & | setOperation (const ULWord op) |
| Sets my operation; also stores caller's PID & TID. More... | |
| NTV2ConfigInterrupt & | setInterruptID (const INTERRUPT_ENUMS id) |
| Sets my interruptID. More... | |
| NTV2ConfigInterrupt & | setEventHandle (const HANDLE &h) |
| Sets my event handle. More... | |
| NTV2ConfigInterrupt & | setCreateEvent (void) |
| Sets the kFlagMaskCreateHandle option. More... | |
| bool | RPCEncode (NTV2_RPC_BLOB_TYPE &outBlob) |
| bool | RPCDecode (const NTV2_RPC_BLOB_TYPE &inBlob, size_t &inOutIndex) |
| bool | RPCDecodeClient (const NTV2_RPC_BLOB_TYPE &inBlob, size_t &inOutIndex) |
| bool | RPCEncodeClient (NTV2_RPC_BLOB_TYPE &inBlob) |
| bool | RPCDecodeServer (const NTV2_RPC_BLOB_TYPE &inBlob, size_t &inOutIndex) |
| bool | RPCEncodeServer (NTV2_RPC_BLOB_TYPE &inBlob) |
Static Public Member Functions | |
| static std::string | OpName (const ULWord op) |
| static NTV2StringList | IntNames (const uint64_t mask) |
| static std::string | IntName (const INTERRUPT_ENUMS id) |
Public Attributes | |
| NTV2_HEADER | mHeader |
| The common structure header – ALWAYS FIRST! More... | |
| ULWord | mOperation |
| In: requested operation. More... | |
| ULWord | mFlags |
| In: option flags. More... | |
| ULWord | mInterruptID |
| In: INTERRUPT_ENUMS (interruptID) of interest. More... | |
| ULWord | mResult |
| Out: 0=false (fail), 1 or non-zero == true (success) More... | |
| ULWord64 | mInterruptIDs |
| Out: bitmap of enabled interrupt IDs. More... | |
| ULWord64 | mEventHandle |
| In: handle to subscribe if kFlagMaskCreateHandle bit is clear. More... | |
| ULWord64 | mClientID |
| In: client identifier. More... | |
| ULWord64 | mClientPID |
| In: client process identifier. More... | |
| ULWord64 | mClientTID |
| In: client thread identifier. More... | |
| ULWord | mCount |
| In: set interrupt count; Out: requested count. More... | |
| NTV2Buffer | mHandles |
| Optional buffer to store subscribed HANDLEs. More... | |
| ULWord | mSpares [32] |
| Reserved for future use. More... | |
| NTV2_TRAILER | mTrailer |
| The common structure trailer – ALWAYS LAST! More... | |
Static Public Attributes | |
| static const ULWord | kOpINVALID = 0x00000000 |
| static const ULWord | kOpFIRST = 0x00000001 |
| static const ULWord | kOpSubscribe = kOpFIRST |
| For given mInterruptID, subscribe it. More... | |
| static const ULWord | kOpUnsubscribe = 0x00000002 |
| For given mInterruptID, unsubscribe it. More... | |
| static const ULWord | kOpEnable = 0x00000003 |
| For given mInterruptID, enable it. More... | |
| static const ULWord | kOpDisable = 0x00000004 |
| For given mInterruptID, disable it. More... | |
| static const ULWord | kOpGetSubscribed = 0x00000005 |
| Get subscribed interrupt IDs (mInterruptID ignored, fills mResultMask, respects kFlagMaskIncludeGlobals) More... | |
| static const ULWord | kOpGetEnabledIDs = 0x00000006 |
| Get enabled interrupt IDs (mInterruptID ignored, fills mInterruptIDs) More... | |
| static const ULWord | kOpGetIntCount = 0x00000007 |
| For given mInterruptID, fetch driver interrupt count into mCount. More... | |
| static const ULWord | kOpSetIntCount = 0x00000008 |
| For given mInterruptID, reset driver interrupt count from mCount. More... | |
| static const ULWord | kOpLAST = kOpSetIntCount |
| static const ULWord | kFlagMaskCreateHandle = 0x00000001 |
| If set, create local event handle; otherwise handle is supplied for subscribe operation. More... | |
| static const ULWord | kFlagMaskIncludeGlobals = 0x00000002 |
| If set, also include global event handles. More... | |
Configure interrupt (subscribe/unsubscribe, enable/disable, query subscribed interrupts, query enabled interrupts, etc.).
Definition at line 7978 of file ntv2publicinterface.h.
|
explicit |
Default ctor, optionally set clientID if needed.
Definition at line 3853 of file ntv2publicinterface.cpp.
|
inline |
Destructor.
Definition at line 7996 of file ntv2publicinterface.h.
|
inline |
Definition at line 8025 of file ntv2publicinterface.h.
|
inline |
Definition at line 8026 of file ntv2publicinterface.h.
|
inline |
Definition at line 8027 of file ntv2publicinterface.h.
|
inline |
Definition at line 8028 of file ntv2publicinterface.h.
|
inline |
Disable given interruptID.
Definition at line 8041 of file ntv2publicinterface.h.
|
inline |
Enable given interruptID.
Definition at line 8040 of file ntv2publicinterface.h.
|
inline |
Get interruptID count.
Definition at line 8042 of file ntv2publicinterface.h.
|
inline |
Retrieve subscribed interrupt IDs + count of them (+ optional event HANDLEs)
Definition at line 8044 of file ntv2publicinterface.h.
|
inline |
Set interruptID count.
Definition at line 8043 of file ntv2publicinterface.h.
|
inline |
Create event handle and subscribe it to given interruptID.
Definition at line 8037 of file ntv2publicinterface.h.
|
inline |
Subscribe given HANDLE for interruptID.
Definition at line 8038 of file ntv2publicinterface.h.
|
inline |
Unsubscribe local HANDLE from given interruptID.
Definition at line 8039 of file ntv2publicinterface.h.
|
inline |
Definition at line 8030 of file ntv2publicinterface.h.
|
inline |
Definition at line 8017 of file ntv2publicinterface.h.
|
inline |
Definition at line 8033 of file ntv2publicinterface.h.
|
inline |
Definition at line 8034 of file ntv2publicinterface.h.
|
inline |
Definition at line 8018 of file ntv2publicinterface.h.
|
inline |
Definition at line 8019 of file ntv2publicinterface.h.
|
static |
Definition at line 3834 of file ntv2publicinterface.cpp.
|
static |
Definition at line 3844 of file ntv2publicinterface.cpp.
|
inline |
Definition at line 8022 of file ntv2publicinterface.h.
|
inline |
Definition at line 8020 of file ntv2publicinterface.h.
|
inline |
Definition at line 8029 of file ntv2publicinterface.h.
|
inline |
Definition at line 8016 of file ntv2publicinterface.h.
|
inline |
Definition at line 8021 of file ntv2publicinterface.h.
|
inline |
Definition at line 8023 of file ntv2publicinterface.h.
|
static |
Definition at line 3827 of file ntv2publicinterface.cpp.
| ostream & NTV2ConfigInterrupt::print | ( | std::ostream & | oss | ) | const |
prints a human-readable representation of me to the given output stream
Definition at line 3871 of file ntv2publicinterface.cpp.
| bool NTV2ConfigInterrupt::RPCDecode | ( | const NTV2_RPC_BLOB_TYPE & | inBlob, |
| size_t & | inOutIndex | ||
| ) |
Definition at line 4249 of file ntv2publicinterface.cpp.
| bool NTV2ConfigInterrupt::RPCDecodeClient | ( | const NTV2_RPC_BLOB_TYPE & | inBlob, |
| size_t & | inOutIndex | ||
| ) |
| bool NTV2ConfigInterrupt::RPCDecodeServer | ( | const NTV2_RPC_BLOB_TYPE & | inBlob, |
| size_t & | inOutIndex | ||
| ) |
| bool NTV2ConfigInterrupt::RPCEncode | ( | NTV2_RPC_BLOB_TYPE & | outBlob | ) |
Definition at line 4222 of file ntv2publicinterface.cpp.
| bool NTV2ConfigInterrupt::RPCEncodeClient | ( | NTV2_RPC_BLOB_TYPE & | inBlob | ) |
| bool NTV2ConfigInterrupt::RPCEncodeServer | ( | NTV2_RPC_BLOB_TYPE & | inBlob | ) |
|
inline |
Sets my mClientID.
Definition at line 8055 of file ntv2publicinterface.h.
|
inline |
Sets my mCount.
Definition at line 8056 of file ntv2publicinterface.h.
|
inline |
Sets the kFlagMaskCreateHandle option.
Definition at line 8060 of file ntv2publicinterface.h.
|
inline |
Definition at line 8031 of file ntv2publicinterface.h.
|
inline |
Sets my event handle.
Definition at line 8059 of file ntv2publicinterface.h.
|
inline |
Zeroes my mResult (indicating failure)
Definition at line 8053 of file ntv2publicinterface.h.
|
inline |
Sets my interruptID.
Definition at line 8058 of file ntv2publicinterface.h.
| NTV2ConfigInterrupt & NTV2ConfigInterrupt::setOperation | ( | const ULWord | op | ) |
Sets my operation; also stores caller's PID & TID.
Definition at line 3898 of file ntv2publicinterface.cpp.
|
inline |
Sets my mResult.
Definition at line 8052 of file ntv2publicinterface.h.
|
inline |
Sets my mResult to 1 (non-zero indicates success)
Definition at line 8054 of file ntv2publicinterface.h.
|
static |
If set, create local event handle; otherwise handle is supplied for subscribe operation.
Definition at line 8012 of file ntv2publicinterface.h.
|
static |
If set, also include global event handles.
Definition at line 8013 of file ntv2publicinterface.h.
|
static |
For given mInterruptID, disable it.
Definition at line 8004 of file ntv2publicinterface.h.
|
static |
For given mInterruptID, enable it.
Definition at line 8003 of file ntv2publicinterface.h.
|
static |
Definition at line 8000 of file ntv2publicinterface.h.
|
static |
Get enabled interrupt IDs (mInterruptID ignored, fills mInterruptIDs)
Definition at line 8006 of file ntv2publicinterface.h.
|
static |
For given mInterruptID, fetch driver interrupt count into mCount.
Definition at line 8007 of file ntv2publicinterface.h.
|
static |
Get subscribed interrupt IDs (mInterruptID ignored, fills mResultMask, respects kFlagMaskIncludeGlobals)
Definition at line 8005 of file ntv2publicinterface.h.
|
static |
Definition at line 7999 of file ntv2publicinterface.h.
|
static |
Definition at line 8009 of file ntv2publicinterface.h.
|
static |
For given mInterruptID, reset driver interrupt count from mCount.
Definition at line 8008 of file ntv2publicinterface.h.
For given mInterruptID, subscribe it.
Definition at line 8001 of file ntv2publicinterface.h.
|
static |
For given mInterruptID, unsubscribe it.
Definition at line 8002 of file ntv2publicinterface.h.
| ULWord64 NTV2ConfigInterrupt::mClientID |
In: client identifier.
Definition at line 7986 of file ntv2publicinterface.h.
| ULWord64 NTV2ConfigInterrupt::mClientPID |
In: client process identifier.
Definition at line 7987 of file ntv2publicinterface.h.
| ULWord64 NTV2ConfigInterrupt::mClientTID |
In: client thread identifier.
Definition at line 7988 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mCount |
In: set interrupt count; Out: requested count.
Definition at line 7989 of file ntv2publicinterface.h.
| ULWord64 NTV2ConfigInterrupt::mEventHandle |
In: handle to subscribe if kFlagMaskCreateHandle bit is clear.
Definition at line 7985 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mFlags |
In: option flags.
Definition at line 7981 of file ntv2publicinterface.h.
| NTV2Buffer NTV2ConfigInterrupt::mHandles |
Optional buffer to store subscribed HANDLEs.
Definition at line 7990 of file ntv2publicinterface.h.
| NTV2_HEADER NTV2ConfigInterrupt::mHeader |
The common structure header – ALWAYS FIRST!
Definition at line 7979 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mInterruptID |
In: INTERRUPT_ENUMS (interruptID) of interest.
Definition at line 7982 of file ntv2publicinterface.h.
| ULWord64 NTV2ConfigInterrupt::mInterruptIDs |
Out: bitmap of enabled interrupt IDs.
Definition at line 7984 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mOperation |
In: requested operation.
Definition at line 7980 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mResult |
Out: 0=false (fail), 1 or non-zero == true (success)
Definition at line 7983 of file ntv2publicinterface.h.
| ULWord NTV2ConfigInterrupt::mSpares[32] |
Reserved for future use.
Definition at line 7991 of file ntv2publicinterface.h.
| NTV2_TRAILER NTV2ConfigInterrupt::mTrailer |
The common structure trailer – ALWAYS LAST!
Definition at line 7992 of file ntv2publicinterface.h.