Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Roba1993/rzw
/ functions
Functions
101 in github.com/Roba1993/rzw
⨍
Functions
101
◇
Types & classes
28
↓ 17 callers
Method
write
(&mut self, message: M)
src/driver_old/serial_old.rs:234
↓ 13 callers
Method
clone
We need to implement Clone manually because of a bugin rust
src/basic/mod.rs:413
↓ 12 callers
Method
read
(&mut self)
src/driver_old/serial_old.rs:303
↓ 7 callers
Method
read_single_msg_rty
Reads a single message from the zwave driver. It retries to read after a timeout as defined.
src/driver_old/serial_old.rs:154
↓ 6 callers
Method
get_command
return the command as Vec<u8>
src/driver_old/serial_old.rs:537
↓ 6 callers
Method
to_vec
Return the message as Vec<u8>
src/cmds/mod.rs:278
↓ 5 callers
Method
kind
Returns the corresponding `ErrorKind` for this error.
src/error.rs:50
↓ 4 callers
Method
read_all_msg
Reads all messages and stores them to the table.
src/driver_old/serial_old.rs:184
↓ 3 callers
Function
calc_value
test the right conversion
src/cmds/meter.rs:343
↓ 2 callers
Method
get
Generate the message for the basic Command Class with the function to get a value.
src/cmds/info.rs:12
↓ 1 callers
Method
description
Get the error description
src/error.rs:64
↓ 1 callers
Method
discover_nodes
Discover all nodes which are present in the network
src/basic/mod.rs:62
↓ 1 callers
Method
get_bit_at
Checks if the bit at the requested position is set
src/driver_old/serial_old.rs:219
↓ 1 callers
Method
get_id
get the node id
src/basic/mod.rs:175
↓ 1 callers
Method
get_next_msg_id
Count the message_id up and return the new message_id
src/driver_old/serial_old.rs:67
↓ 1 callers
Method
get_node_ids
(&mut self)
src/driver_old/serial_old.rs:319
↓ 1 callers
Method
node_info_get
This function returns the GenericType for the node and the CommandClass.
src/basic/mod.rs:184
↓ 1 callers
Function
open
( path: P, )
src/lib.rs:58
↓ 1 callers
Method
read_single_msg
This function reads a single message from the ZWave device/driver
src/driver_old/serial_old.rs:81
↓ 1 callers
Method
update_node_info
Updates the information of the node
src/basic/mod.rs:164
Method
basic_get
(&self)
src/basic/mod.rs:209
Method
basic_set
This function sets the basic status of the node.
src/basic/mod.rs:198
Method
calc_value
generate the value out of the scale and byte vector
src/cmds/meter.rs:240
Method
checksum
Returns the checksum for the given vector
src/defs.rs:137
Method
checksum
Returns the checksum for the given vector
src/driver_old/serial_old.rs:578
Method
flush
(&mut self)
src/driver.rs:95
Method
fmt
How to print the error
src/error.rs:57
Method
fmt
(&self, f: &mut fmt::Formatter)
src/driver_old/serial_old.rs:435
Method
from
Transform std io errors to this crate error
src/error.rs:71
Method
from
Convert the message to a u8 vector
src/cmds/mod.rs:292
Method
get
The Binary Switch Get command, version 1 is used to request the status of a device with On/Off or Enable/Disable capability.
src/cmds/switch_binary.rs:30
Method
get
The Multilevel Switch Get command, version 1 is used to request the status of a device with variable levels capability.
src/cmds/switch_multilevel.rs:27
Method
get
Generate the message for the basic Command Class with the function to get a value.
src/cmds/basic.rs:16
Method
get
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
src/cmds/meter.rs:63
Method
get
The Powerlevel Get Command is used to request the current power level value. The Powerlevel Report Command MUST be returned in response to this comman
src/cmds/powerlevel.rs:69
Method
get_command
return the command as Vec<u8>
src/defs.rs:101
Method
get_commands
(&self)
src/basic/mod.rs:179
Method
get_hex
return the message as string in hex format
src/driver_old/serial_old.rs:573
Method
get_messages
Return a copy the message stack
src/driver_old/serial_old.rs:228
Method
get_node_generic_class
(&mut self, node_id: N)
src/driver_old/serial_old.rs:383
Method
get_precision_scale_size
extract the precision, scale and size as bit information
src/cmds/meter.rs:231
Method
get_rate_meter_type
(input: u8)
src/cmds/meter.rs:298
Method
get_scale
(&self)
src/defs.rs:462
Method
get_scale
(&self)
src/cmds/mod.rs:160
Method
get_v2
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
src/cmds/meter.rs:77
Method
handle_messages
(&self, h: Box<dyn Fn(SerialMsg) + Send>)
src/basic/mod.rs:110
Method
meter_get
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
src/basic/mod.rs:373
Method
meter_get_v2
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
src/basic/mod.rs:392
Method
new
Create a new serial driver based on the given stream
src/driver.rs:17
Method
new
create a new message
src/defs.rs:12
Method
new
Create a new error with a given type and description
src/error.rs:42
Method
new
(node_id: u8, cmd_class: CommandClass, cmd: u8, data: Vec<u8>)
src/cmds/mod.rs:201
Method
new
Create a new serial driver based on the given stream
src/driver_old/mod.rs:13
Method
new
Creates a new SerialDriver which is a connection point to ZWave device & network.
src/driver_old/serial_old.rs:30
Method
new
Generate a new Controller to interface with the z-wave network.
src/basic/mod.rs:50
Method
new_header
create a new message with only the header
src/defs.rs:22
Method
new_header
create a new message with only the header
src/driver_old/serial_old.rs:460
Method
new_with_raw
create a new message
src/cmds/mod.rs:212
Method
node
This function returns the defined node and a mutable reference to the z-wave driver.
src/basic/mod.rs:82
Method
nodes
Return all node ids
src/basic/mod.rs:101
Method
parse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/defs.rs:32
Method
parse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/cmds/mod.rs:229
Method
parse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/driver_old/serial_old.rs:470
Method
powerlevel_get
This command is used to advertise the current power level. Return the Powerlevel status and the time left on this power level.
src/basic/mod.rs:303
Method
powerlevel_set
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
src/basic/mod.rs:288
Method
powerlevel_test_node_get
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 i
src/basic/mod.rs:350
Method
powerlevel_test_node_set
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
src/basic/mod.rs:326
Function
precision_scale_size
test the right conversion
src/cmds/meter.rs:314
Method
read
(&mut self, inp: &mut [u8])
src/driver.rs:71
Method
read_byte
Read a single byte from the stream and retries the amount of times as specified
src/driver.rs:22
Method
report
The Binary Switch Report command, version 1 is used to advertise the status of a device with On/Off or Enable/Disable capability.
src/cmds/switch_binary.rs:39
Method
report
The Multilevel Switch Report command, version 1 is used to advertise the status of a device with variable levels capability.
src/cmds/switch_multilevel.rs:41
Method
report
Read a the Node_Information message and parse it to the type and command class types.
src/cmds/info.rs:18
Method
report
Returns the basic node value
src/cmds/basic.rs:21
Method
report
The Meter Report Command is used to advertise a meter reading.
src/cmds/meter.rs:97
Method
report
This command is used to advertise the current power level. Return the Powerlevel status and the time left on this power level.
src/cmds/powerlevel.rs:79
Method
report_v2
The Meter Report Command is used to advertise a meter reading.
src/cmds/meter.rs:153
Method
set
The Binary Switch Set command, version 1 is used to set a binary value.
src/cmds/switch_binary.rs:11
Method
set
The Multilevel Switch Set command, version 1 is used to set a u8 value.
src/cmds/switch_multilevel.rs:11
Method
set
Generate the message for the basic Command Class with the function to set a value.
src/cmds/basic.rs:10
Method
set
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
src/cmds/powerlevel.rs:52
Method
switch_binary_get
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
src/basic/mod.rs:240
Method
switch_binary_set
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
src/basic/mod.rs:224
Method
switch_multilevel_get
The Multilevel Switch Command Class is used to control devices with variable levels such as dimmer switches The Multilevel Switch Get command, versio
src/basic/mod.rs:271
Method
switch_multilevel_set
The Multilevel Switch Command Class is used to control devices with variable levels such as dimmer switches The Multilevel Switch Set command, versio
src/basic/mod.rs:255
Function
test_delayed_read_byte
()
src/driver.rs:124
Function
test_new
()
src/driver.rs:101
Function
test_new
()
src/driver_old/mod.rs:23
Method
test_node_get
The Powerlevel Test Node Get Command is used to request the result of the latest Powerlevel Test. The Powerlevel Test Node Report Command MUST be retu
src/cmds/powerlevel.rs:151
Method
test_node_report
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 i
src/cmds/powerlevel.rs:162
Method
test_node_set
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
src/cmds/powerlevel.rs:120
Function
test_timeout_read_byte
()
src/driver.rs:107
Method
to_hex
Return a Vec<u8> into a String in a hex format.
src/defs.rs:126
Method
to_hex
Return a Vec<u8> into a String in a hex format.
src/driver_old/serial_old.rs:562
Method
to_meter_data
format the value into the right MeterData format
src/cmds/meter.rs:266
Method
transform_array_of_u8_to_u16
transform two u8 into a u16 value
src/cmds/powerlevel.rs:209
Method
transform_u16_to_array_of_u8
transform a u16 to a u8 array.
src/cmds/powerlevel.rs:202
Function
transform_u16_to_u8
test the right conversion
src/cmds/powerlevel.rs:223
Function
transform_u8_to_u16
test the right conversion
src/cmds/powerlevel.rs:232
Method
try_from
(value: u8)
src/defs.rs:161
next →
1–100 of 101, ranked by callers