ezsp 7.3.1

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

use crate::ember::constants::COUNTER_TYPE_COUNT;

crate::frame::parameters::frame!(
    0x00F1,
    {},
    { values: [u16; COUNTER_TYPE_COUNT] } => Utilities(utilities)::ReadCounters,
    impl {
        /// Convert the response into an array of counter values.
        impl From<Response> for [u16; COUNTER_TYPE_COUNT] {
            fn from(response: Response) -> Self {
                response.values
            }
        }
    }
);