![]() |
WPILibC++ 2025.3.2
|
Functions | |
| NT_Bool | NT_SetInteger (NT_Handle pubentry, int64_t time, int64_t value) |
| Publish a new value. | |
| NT_Bool | NT_SetDefaultInteger (NT_Handle pubentry, int64_t defaultValue) |
| Publish a default value. | |
| int64_t | NT_GetInteger (NT_Handle subentry, int64_t defaultValue) |
| Get the last published value. | |
| void | NT_GetAtomicInteger (NT_Handle subentry, int64_t defaultValue, struct NT_TimestampedInteger *value) |
| Get the last published value along with its timestamp. | |
| void | NT_DisposeTimestampedInteger (struct NT_TimestampedInteger *value) |
| Disposes a timestamped value (as returned by NT_GetAtomicInteger). | |
| struct NT_TimestampedInteger * | NT_ReadQueueInteger (NT_Handle subentry, size_t *len) |
| Get an array of all value changes since the last call to ReadQueue. | |
| void | NT_FreeQueueInteger (struct NT_TimestampedInteger *arr, size_t len) |
| Frees a timestamped array of values (as returned by NT_ReadQueueInteger). | |
| int64_t * | NT_ReadQueueValuesInteger (NT_Handle subentry, size_t *len) |
| Get an array of all value changes since the last call to ReadQueue. | |
| void NT_DisposeTimestampedInteger | ( | struct NT_TimestampedInteger * | value | ) |
Disposes a timestamped value (as returned by NT_GetAtomicInteger).
| value | timestamped value |
| void NT_FreeQueueInteger | ( | struct NT_TimestampedInteger * | arr, |
| size_t | len ) |
Frees a timestamped array of values (as returned by NT_ReadQueueInteger).
| arr | array |
| len | length of array |
| void NT_GetAtomicInteger | ( | NT_Handle | subentry, |
| int64_t | defaultValue, | ||
| struct NT_TimestampedInteger * | 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) |
| int64_t NT_GetInteger | ( | NT_Handle | subentry, |
| int64_t | defaultValue ) |
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_TimestampedInteger * NT_ReadQueueInteger | ( | 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) |
| int64_t * NT_ReadQueueValuesInteger | ( | NT_Handle | subentry, |
| size_t * | len ) |
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 default value.
On reconnect, a default value will never be used in preference to a published value.
| pubentry | publisher or entry handle |
| defaultValue | default value |