40 #include "readrange.h" 78 uint32_t object_instance,
79 BACNET_CHARACTER_STRING * object_name);
89 uint32_t object_instance);
103 unsigned current_index);
113 uint32_t object_instance,
114 BACNET_PROPERTY_VALUE * value_list);
123 uint32_t object_instance);
131 uint32_t object_instance);
139 uint32_t object_instance);
152 BACNET_OBJECT_TYPE Object_Type;
158 read_property_function Object_Read_Property;
159 write_property_function Object_Write_Property;
160 rpm_property_lists_function Object_RPM_List;
161 rr_info_function Object_RR_Info;
170 #define MAX_DEV_NAME_LEN 32 171 #define MAX_DEV_LOC_LEN 64 172 #define MAX_DEV_MOD_LEN 32 173 #define MAX_DEV_VER_LEN 16 174 #define MAX_DEV_DESC_LEN 64 192 char Object_Name[MAX_DEV_NAME_LEN];
213 char Description[MAX_DEV_DESC_LEN];
227 bool Device_Reinitialize(
228 BACNET_REINITIALIZE_DEVICE_DATA * rd_data);
230 BACNET_REINITIALIZED_STATE Device_Reinitialized_State(
233 rr_info_function Device_Objects_RR_Info(
234 BACNET_OBJECT_TYPE object_type);
236 void Device_getCurrentDateTime(
237 BACNET_DATE_TIME * DateTime);
238 int32_t Device_UTC_Offset(
void);
239 bool Device_Daylight_Savings_Status(
void);
241 void Device_Property_Lists(
242 const int **pRequired,
243 const int **pOptional,
244 const int **pProprietary);
245 void Device_Objects_Property_List(
246 BACNET_OBJECT_TYPE object_type,
247 struct special_property_list_t *pPropertyList);
249 bool Device_Encode_Value_List(
250 BACNET_OBJECT_TYPE object_type,
251 uint32_t object_instance,
252 BACNET_PROPERTY_VALUE * value_list);
253 bool Device_Value_List_Supported(
254 BACNET_OBJECT_TYPE object_type);
256 BACNET_OBJECT_TYPE object_type,
257 uint32_t object_instance);
258 void Device_COV_Clear(
259 BACNET_OBJECT_TYPE object_type,
260 uint32_t object_instance);
264 bool Device_Set_Object_Instance_Number(
266 bool Device_Valid_Object_Instance_Number(
271 unsigned array_index,
273 uint32_t * instance);
275 unsigned Device_Count(
277 uint32_t Device_Index_To_Instance(
280 bool Device_Object_Name(
281 uint32_t object_instance,
282 BACNET_CHARACTER_STRING * object_name);
283 bool Device_Set_Object_Name(
284 BACNET_CHARACTER_STRING * object_name);
287 BACNET_OBJECT_TYPE object_type,
288 uint32_t object_instance,
289 BACNET_CHARACTER_STRING * object_name);
290 bool Device_Object_Name_ANSI_Init(
const char * value);
292 BACNET_DEVICE_STATUS Device_System_Status(
294 int Device_Set_System_Status(
295 BACNET_DEVICE_STATUS status,
298 const char *Device_Vendor_Name(
303 void Device_Set_Vendor_Identifier(
306 const char *Device_Model_Name(
308 bool Device_Set_Model_Name(
312 const char *Device_Firmware_Revision(
315 const char *Device_Application_Software_Version(
317 bool Device_Set_Application_Software_Version(
321 const char *Device_Description(
323 bool Device_Set_Description(
327 const char *Device_Location(
329 bool Device_Set_Location(
334 uint8_t Device_Protocol_Version(
336 uint8_t Device_Protocol_Revision(
338 BACNET_SEGMENTATION Device_Segmentation_Supported(
341 uint32_t Device_Database_Revision(
343 void Device_Set_Database_Revision(
345 void Device_Inc_Database_Revision(
349 BACNET_CHARACTER_STRING * object_name,
351 uint32_t * object_instance);
354 uint32_t object_instance);
357 BACNET_READ_PROPERTY_DATA * rpdata);
358 bool Device_Write_Property(
359 BACNET_WRITE_PROPERTY_DATA * wp_data);
361 bool DeviceGetRRInfo(
362 BACNET_READ_RANGE_DATA * pRequest,
363 RR_PROP_INFO * pInfo);
365 int Device_Read_Property_Local(
366 BACNET_READ_PROPERTY_DATA * rpdata);
367 bool Device_Write_Property_Local(
368 BACNET_WRITE_PROPERTY_DATA * wp_data);
370 #if defined(INTRINSIC_REPORTING) 371 void Device_local_reporting(
379 void Routing_Device_Init(
380 uint32_t first_object_instance);
382 uint16_t Add_Routed_Device(
383 uint32_t Object_Instance,
384 BACNET_CHARACTER_STRING * Object_Name,
385 const char *Description);
388 BACNET_ADDRESS *Get_Routed_Device_Address(
391 void routed_get_my_address(
392 BACNET_ADDRESS * my_address);
394 bool Routed_Device_Address_Lookup(
397 uint8_t * mac_adress);
398 bool Routed_Device_GetNext(
399 BACNET_ADDRESS * dest,
402 bool Routed_Device_Is_Valid_Network(
406 uint32_t Routed_Device_Index_To_Instance(
408 bool Routed_Device_Valid_Object_Instance_Number(
410 bool Routed_Device_Name(
411 uint32_t object_instance,
412 BACNET_CHARACTER_STRING * object_name);
413 uint32_t Routed_Device_Object_Instance_Number(
415 bool Routed_Device_Set_Object_Instance_Number(
417 bool Routed_Device_Set_Object_Name(
421 bool Routed_Device_Set_Description(
424 void Routed_Device_Inc_Database_Revision(
426 int Routed_Device_Service_Approval(
427 BACNET_CONFIRMED_SERVICE service,
428 int service_argument,
bool Device_Object_Name_Copy(BACNET_OBJECT_TYPE object_type, uint32_t object_instance, BACNET_CHARACTER_STRING *object_name)
Definition: device-client.c:661
bool(* object_cov_function)(uint32_t object_instance)
Definition: device.h:122
bool(* object_valid_instance_function)(uint32_t object_instance)
Definition: device.h:88
unsigned(* object_iterate_function)(unsigned current_index)
Definition: device.h:102
bool(* object_value_list_function)(uint32_t object_instance, BACNET_PROPERTY_VALUE *value_list)
Definition: device.h:112
uint32_t Device_Object_Instance_Number(void)
Definition: device-client.c:225
bool(* object_name_function)(uint32_t object_instance, BACNET_CHARACTER_STRING *object_name)
Definition: device.h:77
unsigned Device_Object_List_Count(void)
Definition: device-client.c:512
void(* object_cov_clear_function)(uint32_t object_instance)
Definition: device.h:130
void(* object_init_function)(void)
Definition: device.h:46
struct devObj_s DEVICE_OBJECT_DATA
BACNET_ADDRESS bacDevAddr
Definition: device.h:207
uint32_t Database_Revision
Definition: device.h:216
void Device_Init(object_functions_t *object_table)
Definition: device-client.c:1013
uint16_t Device_Vendor_Identifier(void)
Definition: device-client.c:364
uint32_t Object_Instance_Number
Definition: device.h:186
bool Device_Valid_Object_Id(int object_type, uint32_t object_instance)
Definition: device-client.c:640
struct object_functions object_functions_t
struct commonBacObj_s COMMON_BAC_OBJECT
void(* object_intrinsic_reporting_function)(uint32_t object_instance)
Definition: device.h:138
bool Device_Valid_Object_Name(BACNET_CHARACTER_STRING *object_name, int *object_type, uint32_t *object_instance)
Definition: device-client.c:599
COMMON_BAC_OBJECT bacObj
Definition: device.h:210
BACNET_OBJECT_TYPE mObject_Type
Definition: device.h:183
int Device_Read_Property(BACNET_READ_PROPERTY_DATA *rpdata)
Definition: device-client.c:977
bool Device_Object_List_Identifier(unsigned array_index, int *object_type, uint32_t *instance)
Definition: device-client.c:540
uint32_t(* object_index_to_instance_function)(unsigned index)
Definition: device.h:64
unsigned(* object_count_function)(void)
Definition: device.h:54