Go to the source code of this file.
|
int | anjay_ipso_basic_sensor_install (anjay_t *anjay, anjay_oid_t oid, size_t num_instances) |
|
int | anjay_ipso_basic_sensor_instance_add (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, const anjay_ipso_basic_sensor_impl_t impl) |
|
int | anjay_ipso_basic_sensor_instance_remove (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid) |
|
int | anjay_ipso_basic_sensor_update (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid) |
|
int | anjay_ipso_3d_sensor_install (anjay_t *anjay, anjay_oid_t oid, size_t num_instances) |
|
int | anjay_ipso_3d_sensor_instance_add (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, const anjay_ipso_3d_sensor_impl_t impl) |
|
int | anjay_ipso_3d_sensor_instance_remove (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid) |
|
int | anjay_ipso_3d_sensor_update (anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid) |
|
int | anjay_ipso_button_install (anjay_t *anjay, size_t num_instances) |
|
int | anjay_ipso_button_instance_add (anjay_t *anjay, anjay_iid_t iid, const char *application_type) |
|
int | anjay_ipso_button_instance_remove (anjay_t *anjay, anjay_iid_t iid) |
|
int | anjay_ipso_button_update (anjay_t *anjay, anjay_iid_t iid, bool pressed) |
|
◆ anjay_ipso_3d_sensor_impl_t
◆ anjay_ipso_3d_sensor_value_reader_t
typedef int anjay_ipso_3d_sensor_value_reader_t(anjay_iid_t iid, void *ctx, double *x_value, double *y_value, double *z_value) |
Type of the user provided callbacks to read the three-axis sensor value.
- Parameters
-
iid | IID of the instance reading the value. |
ctx | User provided context. |
x_value | X axis output. |
y_value | Y axis output. |
z_value | Z axis output. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_basic_sensor_impl_t
◆ anjay_ipso_basic_sensor_value_reader_t
typedef int anjay_ipso_basic_sensor_value_reader_t(anjay_iid_t iid, void *ctx, double *value) |
Type of the user provided callbacks to read a basic sensor value.
- Parameters
-
iid | IID of the instance for which the value will be read. |
ctx | User provided context. |
value | Output. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_3d_sensor_install()
int anjay_ipso_3d_sensor_install |
( |
anjay_t * |
anjay, |
|
|
anjay_oid_t |
oid, |
|
|
size_t |
num_instances |
|
) |
| |
Installs a three-axis sensor object in an Anjay object.
- Parameters
-
anjay | Anjay object for which the sensor object is installed. |
oid | OID of the installed object. |
num_instances | Maximum number of the instances which will be created for the installed object. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_3d_sensor_instance_add()
Adds an instance of a three-axis sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the added instance. Should be lower than the number of instances passed to the corresponding anjay_ipso_3d_sensor_install |
impl | Parameters and callbacks needed to initialize an instance. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_3d_sensor_instance_remove()
Removes an instance of a three-axis sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the removed instance. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_3d_sensor_update()
Updates a three-axis sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the updated instance. |
◆ anjay_ipso_basic_sensor_install()
int anjay_ipso_basic_sensor_install |
( |
anjay_t * |
anjay, |
|
|
anjay_oid_t |
oid, |
|
|
size_t |
num_instances |
|
) |
| |
Installs a basic sensor object in an Anjay object.
- Parameters
-
anjay | Anjay object for which the sensor object is installed. |
oid | OID of the installed object. |
num_instances | Maximum number of the instances which will be created for the installed object. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_basic_sensor_instance_add()
Adds an instance of a sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the added instance. Should be lower than the number of instances passed to the corresponding anjay_ipso_basic_sensor_install |
impl | Parameters and callbacks needed to initialize an instance. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_basic_sensor_instance_remove()
Removes an instance of a sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the removed instance. Should be lower than the number of instances passed to the corresponding anjay_ipso_basic_sensor_install |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_basic_sensor_update()
Updates a basic sensor object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the installed the sensor object. |
oid | OID of the installed object. |
iid | IID of the updated instance. |
◆ anjay_ipso_button_install()
int anjay_ipso_button_install |
( |
anjay_t * |
anjay, |
|
|
size_t |
num_instances |
|
) |
| |
Installs button object in the given Anjay object.
- Parameters
-
anjay | Anjay object for the Push Button Object installation. |
num_instances | Maximum number of the instances of the installed object. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_button_instance_add()
int anjay_ipso_button_instance_add |
( |
anjay_t * |
anjay, |
|
|
anjay_iid_t |
iid, |
|
|
const char * |
application_type |
|
) |
| |
Add an instance of the Push Button Object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the Push Button Object installed. |
iid | IID of the added instance. |
application_type | "Application type" string for the button instance, is copied during the instance initialization, should not be longer than 40 characters. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_button_instance_remove()
Remove an instance of the Push Button Object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the Push Button Object installed. |
iid | IID of the removed instance. |
- Returns
- 0 on success, or a negative value in case of error.
◆ anjay_ipso_button_update()
Updates Push Button Object installed in an Anjay object.
- Parameters
-
anjay | Anjay object with the Push Button Object installed. |
iid | IID of the removed instance. |
pressed | New state of the button (true if pressed). |
- Returns
- 0 on success, or a negative value in case of error.