WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
Instance Functions

Functions

NT_Inst NT_GetDefaultInstance (void)
 Get default instance.
 
NT_Inst NT_CreateInstance (void)
 Create an instance.
 
void NT_DestroyInstance (NT_Inst inst)
 Destroy an instance.
 
NT_Inst NT_GetInstanceFromHandle (NT_Handle handle)
 Get instance handle from another handle.
 

Detailed Description

Function Documentation

◆ NT_CreateInstance()

NT_Inst NT_CreateInstance ( void )

Create an instance.

Returns
Instance handle

◆ NT_DestroyInstance()

void NT_DestroyInstance ( NT_Inst inst)

Destroy an instance.

The default instance cannot be destroyed.

Parameters
instInstance handle

◆ NT_GetDefaultInstance()

NT_Inst NT_GetDefaultInstance ( void )

Get default instance.

This is the instance used by non-handle-taking functions.

Returns
Instance handle

◆ NT_GetInstanceFromHandle()

NT_Inst NT_GetInstanceFromHandle ( NT_Handle handle)

Get instance handle from another handle.

Parameters
handlehandle
Returns
Instance handle