Nyx Node
Loading...
Searching...
No Matches
Nyx Number Message
Collaboration diagram for Nyx Number Message:

Functions

nyx_dict_tnyx_number_prop_new_int (STR_t name, __NYX_NULLABLE__ STR_t label, STR_t format, int32_t min, int32_t max, int32_t step, int32_t value)
 Allocates a new INDI / Nyx int32_t number property.
nyx_dict_tnyx_number_prop_new_uint (STR_t name, __NYX_NULLABLE__ STR_t label, STR_t format, uint32_t min, uint32_t max, uint32_t step, uint32_t value)
 Allocates a new INDI / Nyx uint32_t number property.
nyx_dict_tnyx_number_prop_new_long (STR_t name, __NYX_NULLABLE__ STR_t label, STR_t format, int64_t min, int64_t max, int64_t step, int64_t value)
 Allocates a new INDI / Nyx int64_t number property.
nyx_dict_tnyx_number_prop_new_ulong (STR_t name, __NYX_NULLABLE__ STR_t label, STR_t format, uint64_t min, uint64_t max, uint64_t step, uint64_t value)
 Allocates a new INDI / Nyx uint64_t number property.
nyx_dict_tnyx_number_prop_new_double (STR_t name, __NYX_NULLABLE__ STR_t label, STR_t format, double min, double max, double step, double value)
 Allocates a new INDI / Nyx double number property.
bool nyx_number_prop_set_int (nyx_dict_t *prop, int32_t value)
 Sets the new value of the provided property object.
int32_t nyx_number_prop_get_int (const nyx_dict_t *prop)
 Gets the value of the provided property object.
bool nyx_number_prop_set_uint (nyx_dict_t *prop, uint32_t value)
 Sets the new value of the provided property object.
uint32_t nyx_number_prop_get_uint (const nyx_dict_t *prop)
 Gets the value of the provided property object.
bool nyx_number_prop_set_long (nyx_dict_t *prop, int64_t value)
 Sets the new value of the provided property object.
int64_t nyx_number_prop_get_long (const nyx_dict_t *prop)
 Gets the value of the provided property object.
bool nyx_number_prop_set_ulong (nyx_dict_t *prop, uint64_t value)
 Sets the new value of the provided property object.
uint64_t nyx_number_prop_get_ulong (const nyx_dict_t *prop)
 Gets the value of the provided property object.
bool nyx_number_prop_set_double (nyx_dict_t *prop, double value)
 Sets the new value of the provided property object.
double nyx_number_prop_get_double (const nyx_dict_t *prop)
 Gets the value of the provided property object.
nyx_dict_tnyx_number_vector_new (STR_t device, STR_t name, nyx_state_t state, nyx_perm_t perm, nyx_dict_t *props[], __NYX_NULLABLE__ const nyx_opts_t *opts)
 Allocates a new INDI / Nyx number vector.

Detailed Description

Nyx Number Message

Function Documentation

◆ nyx_number_prop_new_int()

nyx_dict_t * nyx_number_prop_new_int ( STR_t name,
__NYX_NULLABLE__ STR_t label,
STR_t format,
int32_t min,
int32_t max,
int32_t step,
int32_t value )

Allocates a new INDI / Nyx int32_t number property.

Parameters
nameProperty name.
labelProperty label.
formatPrintf-style formatting string (%[flags][width]d).
minRange min, ignored if min == max.
maxRange max, ignored if min == max.
stepStep size, ignored if step == 0.
valueInitial int32_t value.
Returns
The new property object.

◆ nyx_number_prop_new_uint()

nyx_dict_t * nyx_number_prop_new_uint ( STR_t name,
__NYX_NULLABLE__ STR_t label,
STR_t format,
uint32_t min,
uint32_t max,
uint32_t step,
uint32_t value )

Allocates a new INDI / Nyx uint32_t number property.

Parameters
nameProperty name.
labelProperty label.
formatPrintf-style formatting string (%[flags][width]{uoxX}).
minRange min, ignored if min == max.
maxRange max, ignored if min == max.
stepStep size, ignored if step == 0.
valueInitial uint32_t value.
Returns
The new property object.

◆ nyx_number_prop_new_long()

nyx_dict_t * nyx_number_prop_new_long ( STR_t name,
__NYX_NULLABLE__ STR_t label,
STR_t format,
int64_t min,
int64_t max,
int64_t step,
int64_t value )

Allocates a new INDI / Nyx int64_t number property.

Parameters
nameProperty name.
labelProperty label.
formatPrintf-style formatting string (%[flags][width]ld).
minRange min, ignored if min == max.
maxRange max, ignored if min == max.
stepStep size, ignored if step == 0.
valueInitial int64_t value.
Returns
The new property object.

◆ nyx_number_prop_new_ulong()

nyx_dict_t * nyx_number_prop_new_ulong ( STR_t name,
__NYX_NULLABLE__ STR_t label,
STR_t format,
uint64_t min,
uint64_t max,
uint64_t step,
uint64_t value )

Allocates a new INDI / Nyx uint64_t number property.

Parameters
nameProperty name.
labelProperty label.
formatPrintf-style formatting string (%[flags][width]l{uoxX}).
minRange min, ignored if min == max.
maxRange max, ignored if min == max.
stepStep size, ignored if step == 0.
valueInitial uint64_t value.
Returns
The new property object.

◆ nyx_number_prop_new_double()

nyx_dict_t * nyx_number_prop_new_double ( STR_t name,
__NYX_NULLABLE__ STR_t label,
STR_t format,
double min,
double max,
double step,
double value )

Allocates a new INDI / Nyx double number property.

Parameters
nameProperty name.
labelProperty label.
formatPrintf-style formatting string (%[flags][width]l?{fFeEgGaAm}).
minRange min, ignored if min == max.
maxRange max, ignored if min == max.
stepStep size, ignored if step == 0.
valueInitial double value.
Returns
The new property object.

◆ nyx_number_prop_set_int()

bool nyx_number_prop_set_int ( nyx_dict_t * prop,
int32_t value )

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.

Definition at line 90 of file indi_number.c.

◆ nyx_number_prop_get_int()

int32_t nyx_number_prop_get_int ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 126 of file indi_number.c.

◆ nyx_number_prop_set_uint()

bool nyx_number_prop_set_uint ( nyx_dict_t * prop,
uint32_t value )

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.

Definition at line 95 of file indi_number.c.

◆ nyx_number_prop_get_uint()

uint32_t nyx_number_prop_get_uint ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 131 of file indi_number.c.

◆ nyx_number_prop_set_long()

bool nyx_number_prop_set_long ( nyx_dict_t * prop,
int64_t value )

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.

Definition at line 100 of file indi_number.c.

◆ nyx_number_prop_get_long()

int64_t nyx_number_prop_get_long ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 136 of file indi_number.c.

◆ nyx_number_prop_set_ulong()

bool nyx_number_prop_set_ulong ( nyx_dict_t * prop,
uint64_t value )

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.

Definition at line 105 of file indi_number.c.

◆ nyx_number_prop_get_ulong()

uint64_t nyx_number_prop_get_ulong ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 141 of file indi_number.c.

◆ nyx_number_prop_set_double()

bool nyx_number_prop_set_double ( nyx_dict_t * prop,
double value )

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.

Definition at line 110 of file indi_number.c.

◆ nyx_number_prop_get_double()

double nyx_number_prop_get_double ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 146 of file indi_number.c.

◆ nyx_number_vector_new()

nyx_dict_t * nyx_number_vector_new ( STR_t device,
STR_t name,
nyx_state_t state,
nyx_perm_t perm,
nyx_dict_t * props[],
__NYX_NULLABLE__ const nyx_opts_t * opts )

Allocates a new INDI / Nyx number vector.

Parameters
deviceDevice name.
nameVector name.
stateVector state.
permVector permissions.
propsArray of properties with NULL sentinel.
optsOptions (group, label, hints, timeout, message).
Returns
The new vector object.