| 180 | } |
| 181 | |
| 182 | void InitializeConnectionManager(CipClass *class) { |
| 183 | |
| 184 | CipClass *meta_class = class->class_instance.cip_class; |
| 185 | |
| 186 | InsertAttribute( (CipInstance *) class, 1, kCipUint, |
| 187 | (void *) &class->revision, |
| 188 | kGetableSingleAndAll ); /* revision */ |
| 189 | InsertAttribute( (CipInstance *) class, 2, kCipUint, |
| 190 | (void *) &class->number_of_instances, kGetableSingleAndAll ); /* largest instance number */ |
| 191 | InsertAttribute( (CipInstance *) class, 3, kCipUint, |
| 192 | (void *) &class->number_of_instances, kGetableSingle ); /* number of instances currently existing*/ |
| 193 | InsertAttribute( (CipInstance *) class, 4, kCipUint, (void *) &kCipUintZero, |
| 194 | kNotSetOrGetable ); /* optional attribute list - default = 0 */ |
| 195 | InsertAttribute( (CipInstance *) class, 5, kCipUint, (void *) &kCipUintZero, |
| 196 | kNotSetOrGetable ); /* optional service list - default = 0 */ |
| 197 | InsertAttribute( (CipInstance *) class, 6, kCipUint, |
| 198 | (void *) &meta_class->highest_attribute_number, |
| 199 | kGetableSingleAndAll ); /* max class attribute number*/ |
| 200 | InsertAttribute( (CipInstance *) class, 7, kCipUint, |
| 201 | (void *) &class->highest_attribute_number, |
| 202 | kGetableSingleAndAll ); /* max instance attribute number*/ |
| 203 | |
| 204 | } |
| 205 | |
| 206 | EipStatus ConnectionManagerInit(EipUint16 unique_connection_id) { |
| 207 | InitializeConnectionManagerData(); |
nothing calls this directly
no test coverage detected