Struct rzw::basic::Node [−][src]
pub struct Node<D> where
D: Driver, { /* fields omitted */ }
Methods
impl<D> Node<D> where
D: Driver,
[src]
impl<D> Node<D> where
D: Driver,
pub fn new(driver: Arc<Mutex<D>>, id: u8) -> Node<D>
[src]
pub fn new(driver: Arc<Mutex<D>>, id: u8) -> Node<D>
pub fn update_node_info(&mut self) -> Result<(), Error>
[src]
pub fn update_node_info(&mut self) -> Result<(), Error>
Updates the information of the node
pub fn get_id(&self) -> u8
[src]
pub fn get_id(&self) -> u8
pub fn get_commands(&self) -> Vec<CommandClass>
[src]
pub fn get_commands(&self) -> Vec<CommandClass>
pub fn node_info_get(
&self
) -> Result<(Vec<GenericType>, Vec<CommandClass>), Error>
[src]
pub fn node_info_get(
&self
) -> Result<(Vec<GenericType>, Vec<CommandClass>), Error>
This function returns the GenericType for the node and the CommandClass.
pub fn basic_set<V>(&self, value: V) -> Result<u8, Error> where
V: Into<u8>,
[src]
pub fn basic_set<V>(&self, value: V) -> Result<u8, Error> where
V: Into<u8>,
This function sets the basic status of the node.
pub fn basic_get(&self) -> Result<u8, Error>
[src]
pub fn basic_get(&self) -> Result<u8, Error>
pub fn switch_binary_set<V>(&self, value: V) -> Result<u8, Error> where
V: Into<bool>,
[src]
pub fn switch_binary_set<V>(&self, value: V) -> Result<u8, Error> where
V: Into<bool>,
The Binary Switch Command Class is used to control devices with On/Off or Enable/Disable capability.
The Binary Switch Set command, version 1 is used to set a binary value.
pub fn switch_binary_get(&self) -> Result<bool, Error>
[src]
pub fn switch_binary_get(&self) -> Result<bool, Error>
The Binary Switch Command Class is used to control devices with On/Off or Enable/Disable capability.
The Binary Switch Get command, version 1 is used to request the status of a device with On/Off or Enable/Disable capability.
pub fn powerlevel_set<S, T>(&self, status: S, seconds: T) -> Result<u8, Error> where
S: Into<PowerLevelStatus>,
T: Into<u8>,
[src]
pub fn powerlevel_set<S, T>(&self, status: S, seconds: T) -> Result<u8, Error> where
S: Into<PowerLevelStatus>,
T: Into<u8>,
The Powerlevel Set Command is used to set the power level indicator value, which should be used by the node when transmitting RF, and the timeout for this power level indicator value before returning the power level defined by the application.
The seconds defines how many seconds the device stays in the defined powerlevel.
pub fn powerlevel_get(&self) -> Result<(PowerLevelStatus, u8), Error>
[src]
pub fn powerlevel_get(&self) -> Result<(PowerLevelStatus, u8), Error>
This command is used to advertise the current power level.
Return the Powerlevel status and the time left on this power level.
pub fn powerlevel_test_node_set<T, L, F>(
&self,
test_node_id: T,
level: L,
test_frames: F
) -> Result<u8, Error> where
T: Into<u8>,
L: Into<PowerLevelStatus>,
F: Into<u16>,
[src]
pub fn powerlevel_test_node_set<T, L, F>(
&self,
test_node_id: T,
level: L,
test_frames: F
) -> Result<u8, Error> where
T: Into<u8>,
L: Into<PowerLevelStatus>,
F: Into<u16>,
The Powerlevel Test Node Set Command is used to instruct the destination node to transmit a number of test frames to the specified NodeID with the RF power level specified. After the test frame transmissions the RF power level is reset to normal and the result (number of acknowledged test frames) is saved for subsequent read-back. The result of the test may be requested with a Powerlevel Test Node Get Command.
node_id: The node id where to send the message. test_node_id: The test NodeID that should receive the test frames. level: The power level indicator value to use in the test frame transmission. test_frames: The Test frame count field contains the number of test frames to transmit to the Test NodeID. The first byte is the most significant byte.
pub fn powerlevel_test_node_get(
&self
) -> Result<(u8, PowerLevelOperationStatus, u16), Error>
[src]
pub fn powerlevel_test_node_get(
&self
) -> Result<(u8, PowerLevelOperationStatus, u16), Error>
This command is used to report the latest result of a test frame transmission started by the Powerlevel Test Node Set Command.
Return the test node id, status of operation and the test frane count.
pub fn meter_get(&self) -> Result<MeterData, Error>
[src]
pub fn meter_get(&self) -> Result<MeterData, Error>
A meter is used to monitor a resource. The meter accumulates the resource flow over time. As an option, the meter may report not only the most recent accumulated reading but also the previous reading and the time that elapsed since then. A meter may also be able to report the current resource flow. This is known as the instant value.
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
pub fn meter_get_v2<S>(
&self,
meter_type: S
) -> Result<(MeterData, u16, MeterData), Error> where
S: Into<MeterData>,
[src]
pub fn meter_get_v2<S>(
&self,
meter_type: S
) -> Result<(MeterData, u16, MeterData), Error> where
S: Into<MeterData>,
A meter is used to monitor a resource. The meter accumulates the resource flow over time. As an option, the meter may report not only the most recent accumulated reading but also the previous reading and the time that elapsed since then. A meter may also be able to report the current resource flow. This is known as the instant value.
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
Trait Implementations
impl<D: Debug> Debug for Node<D> where
D: Driver,
[src]
impl<D: Debug> Debug for Node<D> where
D: Driver,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<D> Clone for Node<D> where
D: Driver,
[src]
impl<D> Clone for Node<D> where
D: Driver,