Skip to content

Commit

Permalink
split up apsme
Browse files Browse the repository at this point in the history
  • Loading branch information
thebino committed Oct 20, 2024
1 parent fdbcb09 commit 8e20626
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/aps/apsme.rs → src/aps/apsme/basemgt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#![allow(dead_code)]
//!
//! 2.2.4.4 Information Base Maintenance
//! This set of primitives defines how the next higher layer of a device can read and write attributes in the AIB
//!
use crate::aps::types;

type DstAddrMode = u8;
Expand Down Expand Up @@ -88,3 +91,19 @@ struct ApsmeGetConfirm {
attribute_value: AIBAttributeValue,
}

// 2.2.4.4.3 APSME-SET.request
struct ApsmeSetRequest {
attribute: AIBAttribute,
attribute_length: u8,
attribute_value: AIBAttributeValue,
}

// 2.2.4.4.4 APSME-SET.confirm
struct ApsmeSetConfirm {
status: u8,
attribute: AIBAttribute,
attribute_length: u8,
attribute_value: AIBAttributeValue,
}


13 changes: 13 additions & 0 deletions src/aps/apsme/groupmgt.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//!
//! 2.2.4.5 Group Management
//! This set of primitives allows the next higher layer to manage group membership for endpoints on the current device by adding and removing entries in the group table
//!
type DstAddrMode = u8;
// 2.2.4.3.1 APSME-BIND.request
struct ApsmeAddrGroupRequest {
group_address: u16,
endpoint: u8,
}



4 changes: 4 additions & 0 deletions src/aps/apsme/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub(crate) mod basemgt;
pub(crate) mod groupmgt;


0 comments on commit 8e20626

Please sign in to comment.