ezsp 6.0.1

Ember ZNet Serial Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Parameters for the [`TokenInterface::get_token_count`](crate::TokenInterface::get_token_count) command.

crate::frame::parameters::frame!(
    0x0100,
    {},
    { count: u8 } => TokenInterface(token_interface)::GetTokenCount,
    impl {
        /// Convert the response into the count of tokens.
        impl From<Response> for u8 {
            fn from(response: Response) -> Self {
                response.count
            }
        }
    }
);