WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages

Functions

NT_Bool NT_SetEntryBoolean (NT_Entry entry, uint64_t time, NT_Bool v_boolean, NT_Bool force)
 Set Entry Boolean Sets an entry boolean. More...
 
NT_Bool NT_SetEntryDouble (NT_Entry entry, uint64_t time, double v_double, NT_Bool force)
 Set Entry Double Sets an entry double. More...
 
NT_Bool NT_SetEntryString (NT_Entry entry, uint64_t time, const char *str, size_t str_len, NT_Bool force)
 Set Entry String Sets an entry string. More...
 
NT_Bool NT_SetEntryRaw (NT_Entry entry, uint64_t time, const char *raw, size_t raw_len, NT_Bool force)
 Set Entry Raw Sets the raw value of an entry. More...
 
NT_Bool NT_SetEntryBooleanArray (NT_Entry entry, uint64_t time, const int *arr, size_t size, NT_Bool force)
 Set Entry Boolean Array Sets an entry boolean array. More...
 
NT_Bool NT_SetEntryDoubleArray (NT_Entry entry, uint64_t time, const double *arr, size_t size, NT_Bool force)
 Set Entry Double Array Sets an entry double array. More...
 
NT_Bool NT_SetEntryStringArray (NT_Entry entry, uint64_t time, const struct NT_String *arr, size_t size, NT_Bool force)
 Set Entry String Array Sets an entry string array. More...
 

Detailed Description

Function Documentation

NT_Bool NT_SetEntryBoolean ( NT_Entry  entry,
uint64_t  time,
NT_Bool  v_boolean,
NT_Bool  force 
)

Set Entry Boolean Sets an entry boolean.

If the entry name is not currently assigned to a boolean, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
v_booleanboolean value to set
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryBooleanArray ( NT_Entry  entry,
uint64_t  time,
const int *  arr,
size_t  size,
NT_Bool  force 
)

Set Entry Boolean Array Sets an entry boolean array.

If the entry name is not currently assigned to a boolean array, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
arrboolean array to write
sizenumber of elements in the array
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryDouble ( NT_Entry  entry,
uint64_t  time,
double  v_double,
NT_Bool  force 
)

Set Entry Double Sets an entry double.

If the entry name is not currently assigned to a double, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
v_doubledouble value to set
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryDoubleArray ( NT_Entry  entry,
uint64_t  time,
const double *  arr,
size_t  size,
NT_Bool  force 
)

Set Entry Double Array Sets an entry double array.

If the entry name is not currently assigned to a double array, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
arrdouble array to write
sizenumber of elements in the array
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryRaw ( NT_Entry  entry,
uint64_t  time,
const char *  raw,
size_t  raw_len,
NT_Bool  force 
)

Set Entry Raw Sets the raw value of an entry.

If the entry name is not currently assigned to a raw value, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
rawraw string to set (UTF-8 string)
raw_lenlength of raw string to write in bytes
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryString ( NT_Entry  entry,
uint64_t  time,
const char *  str,
size_t  str_len,
NT_Bool  force 
)

Set Entry String Sets an entry string.

If the entry name is not currently assigned to a string, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
strstring to set (UTF-8 string)
str_lenlength of string to write in bytes
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success
NT_Bool NT_SetEntryStringArray ( NT_Entry  entry,
uint64_t  time,
const struct NT_String arr,
size_t  size,
NT_Bool  force 
)

Set Entry String Array Sets an entry string array.

If the entry name is not currently assigned to a string array, returns error unless the force parameter is set.

Parameters
entryentry handle
timetimestamp
arrNT_String array to write
sizenumber of elements in the array
force1 to force the entry to get overwritten, otherwise 0
Returns
0 on error (type mismatch), 1 on success