WPILibC++ 2023.4.3-108-ge5452e3
|
Functions | |
NT_Bool | NT_SetBoolean (NT_Handle pubentry, int64_t time, NT_Bool value) |
Publish a new value. More... | |
NT_Bool | NT_SetDefaultBoolean (NT_Handle pubentry, NT_Bool defaultValue) |
Publish a default value. More... | |
NT_Bool | NT_GetBoolean (NT_Handle subentry, NT_Bool defaultValue) |
Get the last published value. More... | |
void | NT_GetAtomicBoolean (NT_Handle subentry, NT_Bool defaultValue, struct NT_TimestampedBoolean *value) |
Get the last published value along with its timestamp. More... | |
void | NT_DisposeTimestampedBoolean (struct NT_TimestampedBoolean *value) |
Disposes a timestamped value (as returned by NT_GetAtomicBoolean). More... | |
struct NT_TimestampedBoolean * | NT_ReadQueueBoolean (NT_Handle subentry, size_t *len) |
Get an array of all value changes since the last call to ReadQueue. More... | |
void | NT_FreeQueueBoolean (struct NT_TimestampedBoolean *arr, size_t len) |
Frees a timestamped array of values (as returned by NT_ReadQueueBoolean). More... | |
NT_Bool * | NT_ReadQueueValuesBoolean (NT_Handle subentry, size_t *len) |
Get an array of all value changes since the last call to ReadQueue. More... | |
void NT_DisposeTimestampedBoolean | ( | struct NT_TimestampedBoolean * | value | ) |
Disposes a timestamped value (as returned by NT_GetAtomicBoolean).
value | timestamped value |
void NT_FreeQueueBoolean | ( | struct NT_TimestampedBoolean * | arr, |
size_t | len | ||
) |
Frees a timestamped array of values (as returned by NT_ReadQueueBoolean).
arr | array |
len | length of array |
void NT_GetAtomicBoolean | ( | NT_Handle | subentry, |
NT_Bool | defaultValue, | ||
struct NT_TimestampedBoolean * | value | ||
) |
Get the last published value along with its timestamp.
If no value has been published, returns the passed defaultValue and a timestamp of 0.
subentry | subscriber or entry handle |
defaultValue | default value to return if no value has been published |
value | timestamped value (output) |
Get the last published value.
If no value has been published, returns the passed defaultValue.
subentry | subscriber or entry handle |
defaultValue | default value to return if no value has been published |
struct NT_TimestampedBoolean * NT_ReadQueueBoolean | ( | NT_Handle | subentry, |
size_t * | len | ||
) |
Get an array of all value changes since the last call to ReadQueue.
Also provides a timestamp for each value.
subentry | subscriber or entry handle |
len | length of returned array (output) |
Get an array of all value changes since the last call to ReadQueue.
subentry | subscriber or entry handle |
len | length of returned array (output) |
Publish a new value.
pubentry | publisher or entry handle |
time | timestamp; 0 indicates current NT time should be used |
value | value to publish |