Lines Matching full:item
26 * @param item A float or ctrl item
30 const cbor_item_t *item);
34 * @param item A float or ctrl item
38 cbor_float_get_width(const cbor_item_t *item);
42 * The item must have the corresponding width
44 * @param item A half precision float
48 const cbor_item_t *item);
52 * The item must have the corresponding width
54 * @param item A single precision float
58 const cbor_item_t *item);
62 * The item must have the corresponding width
64 * @param item A double precision float
68 const cbor_item_t *item);
74 * @param item Any float
78 const cbor_item_t *item);
80 /** Get value from a boolean ctrl item
82 * @param item A ctrl item
85 _CBOR_NODISCARD CBOR_EXPORT bool cbor_get_bool(const cbor_item_t *item);
87 /** Constructs a new ctrl item
89 * The width cannot be changed once the item is created
91 * @return Reference to the new ctrl item. The item's reference count is
97 /** Constructs a new float item
99 * The width cannot be changed once the item is created
101 * @return Reference to the new float item. The item's reference count is
107 /** Constructs a new float item
109 * The width cannot be changed once the item is created
111 * @return Reference to the new float item. The item's reference count is
117 /** Constructs a new float item
119 * The width cannot be changed once the item is created
121 * @return Reference to the new float item. The item's reference count is
127 /** Constructs new null ctrl item
129 * @return Reference to the new null item. The item's reference count is
135 /** Constructs new undef ctrl item
137 * @return Reference to the new undef item. The item's reference count is
143 /** Constructs new boolean ctrl item
146 * @return Reference to the new boolean item. The item's reference count is
159 * @param item A ctrl item
163 CBOR_EXPORT void cbor_set_ctrl(cbor_item_t *item, uint8_t value);
165 /** Assign a boolean value to a boolean ctrl item
167 * @param item A ctrl item
170 CBOR_EXPORT void cbor_set_bool(cbor_item_t *item, bool value);
174 * @param item A half precision float
177 CBOR_EXPORT void cbor_set_float2(cbor_item_t *item, float value);
181 * @param item A single precision float
184 CBOR_EXPORT void cbor_set_float4(cbor_item_t *item, float value);
188 * @param item A double precision float
191 CBOR_EXPORT void cbor_set_float8(cbor_item_t *item, double value);
195 * @param item A ctrl item
198 _CBOR_NODISCARD CBOR_EXPORT uint8_t cbor_ctrl_value(const cbor_item_t *item);
203 * @return Reference to the new float item. The item's reference count is
212 * @return Reference to the new float item. The item's reference count is
221 * @return Reference to the new float item. The item's reference count is
227 /** Constructs a ctrl item
230 * @return Reference to the new ctrl item. The item's reference count is