|
15 | 15 | #include "bacnet/bacapp.h" |
16 | 16 | #include "bacnet/bacstr.h" |
17 | 17 | #include "bacnet/bacint.h" |
| 18 | +#include "bacnet/wp.h" |
18 | 19 |
|
19 | 20 | #ifdef __cplusplus |
20 | 21 | extern "C" { |
21 | 22 | #endif /* __cplusplus */ |
22 | 23 |
|
23 | | -int bacnet_settings_value_get(uint16_t object_type, uint32_t object_instance, |
24 | | - uint32_t property_id, uint32_t array_index, |
25 | | - BACNET_APPLICATION_DATA_VALUE *value); |
26 | | -bool bacnet_settings_value_set(uint16_t object_type, uint32_t object_instance, |
27 | | - uint32_t property_id, uint32_t array_index, |
28 | | - BACNET_APPLICATION_DATA_VALUE *value); |
| 24 | +void bacnet_settings_basic_store(BACNET_OBJECT_TYPE object_type, uint32_t object_instance, |
| 25 | + BACNET_PROPERTY_ID object_property, BACNET_ARRAY_INDEX array_index, |
| 26 | + uint8_t *application_data, int application_data_len); |
| 27 | +bool bacnet_settings_write_property_store(BACNET_WRITE_PROPERTY_DATA *wp_data); |
| 28 | +bool bacnet_settings_write_property_restore(uint16_t object_type, uint32_t object_instance, |
| 29 | + uint32_t property_id, uint32_t array_index, |
| 30 | + write_property_function write_function); |
29 | 31 |
|
30 | | -int bacnet_settings_real_get(uint16_t object_type, uint32_t object_instance, |
31 | | - uint32_t property_id, uint32_t array_index, |
32 | | - float default_value, float *value); |
33 | | -bool bacnet_settings_real_set(uint16_t object_type, uint32_t object_instance, |
34 | | - uint32_t property_id, uint32_t array_index, |
35 | | - float value); |
| 32 | +int bacnet_settings_value_get(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 33 | + uint32_t array_index, BACNET_APPLICATION_DATA_VALUE *value); |
| 34 | +bool bacnet_settings_value_set(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 35 | + uint32_t array_index, BACNET_APPLICATION_DATA_VALUE *value); |
| 36 | + |
| 37 | +int bacnet_settings_real_get(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 38 | + uint32_t array_index, float default_value, float *value); |
| 39 | +bool bacnet_settings_real_set(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 40 | + uint32_t array_index, float value); |
36 | 41 |
|
37 | 42 | int bacnet_settings_unsigned_get(uint16_t object_type, uint32_t object_instance, |
38 | 43 | uint32_t property_id, uint32_t array_index, |
39 | 44 | BACNET_UNSIGNED_INTEGER default_value, |
40 | 45 | BACNET_UNSIGNED_INTEGER *value); |
41 | | -bool bacnet_settings_unsigned_set(uint16_t object_type, |
42 | | - uint32_t object_instance, |
| 46 | +bool bacnet_settings_unsigned_set(uint16_t object_type, uint32_t object_instance, |
43 | 47 | uint32_t property_id, uint32_t array_index, |
44 | 48 | BACNET_UNSIGNED_INTEGER value); |
45 | 49 |
|
46 | | -int bacnet_settings_signed_get(uint16_t object_type, uint32_t object_instance, |
47 | | - uint32_t property_id, uint32_t array_index, |
48 | | - int32_t default_value, int32_t *value); |
| 50 | +int bacnet_settings_signed_get(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 51 | + uint32_t array_index, int32_t default_value, int32_t *value); |
49 | 52 | bool bacnet_settings_signed_set(uint16_t object_type, uint32_t object_instance, |
50 | | - uint32_t property_id, uint32_t array_index, |
51 | | - int32_t value); |
| 53 | + uint32_t property_id, uint32_t array_index, int32_t value); |
52 | 54 |
|
53 | | -int bacnet_settings_characterstring_get(uint16_t object_type, |
54 | | - uint32_t object_instance, |
55 | | - uint32_t property_id, |
56 | | - uint32_t array_index, |
57 | | - const char *default_value, |
58 | | - BACNET_CHARACTER_STRING *value); |
| 55 | +int bacnet_settings_characterstring_get(uint16_t object_type, uint32_t object_instance, |
| 56 | + uint32_t property_id, uint32_t array_index, |
| 57 | + const char *default_value, BACNET_CHARACTER_STRING *value); |
59 | 58 |
|
60 | | -bool bacnet_settings_characterstring_ansi_set(uint16_t object_type, |
61 | | - uint32_t object_instance, |
62 | | - uint32_t property_id, |
63 | | - uint32_t array_index, |
| 59 | +bool bacnet_settings_characterstring_ansi_set(uint16_t object_type, uint32_t object_instance, |
| 60 | + uint32_t property_id, uint32_t array_index, |
64 | 61 | const char *cstring); |
65 | 62 |
|
66 | | -int bacnet_settings_string_get(uint16_t object_type, uint32_t object_instance, |
67 | | - uint32_t property_id, uint32_t array_index, |
68 | | - const char *default_value, char *value, |
| 63 | +int bacnet_settings_string_get(uint16_t object_type, uint32_t object_instance, uint32_t property_id, |
| 64 | + uint32_t array_index, const char *default_value, char *value, |
69 | 65 | size_t value_size); |
70 | 66 |
|
71 | 67 | bool bacnet_settings_string_set(uint16_t object_type, uint32_t object_instance, |
72 | | - uint32_t property_id, uint32_t array_index, |
73 | | - const char *value); |
| 68 | + uint32_t property_id, uint32_t array_index, const char *value); |
74 | 69 |
|
75 | 70 | #ifdef __cplusplus |
76 | 71 | } |
|
0 commit comments