MCPcopy Create free account

hub / github.com/Roba1993/rzw / functions

Functions101 in github.com/Roba1993/rzw

↓ 17 callersMethodwrite
(&mut self, message: M)
src/driver_old/serial_old.rs:234
↓ 13 callersMethodclone
We need to implement Clone manually because of a bugin rust
src/basic/mod.rs:413
↓ 12 callersMethodread
(&mut self)
src/driver_old/serial_old.rs:303
↓ 7 callersMethodread_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 callersMethodget_command
return the command as Vec<u8>
src/driver_old/serial_old.rs:537
↓ 6 callersMethodto_vec
Return the message as Vec<u8>
src/cmds/mod.rs:278
↓ 5 callersMethodkind
Returns the corresponding `ErrorKind` for this error.
src/error.rs:50
↓ 4 callersMethodread_all_msg
Reads all messages and stores them to the table.
src/driver_old/serial_old.rs:184
↓ 3 callersFunctioncalc_value
test the right conversion
src/cmds/meter.rs:343
↓ 2 callersMethodget
Generate the message for the basic Command Class with the function to get a value.
src/cmds/info.rs:12
↓ 1 callersMethoddescription
Get the error description
src/error.rs:64
↓ 1 callersMethoddiscover_nodes
Discover all nodes which are present in the network
src/basic/mod.rs:62
↓ 1 callersMethodget_bit_at
Checks if the bit at the requested position is set
src/driver_old/serial_old.rs:219
↓ 1 callersMethodget_id
get the node id
src/basic/mod.rs:175
↓ 1 callersMethodget_next_msg_id
Count the message_id up and return the new message_id
src/driver_old/serial_old.rs:67
↓ 1 callersMethodget_node_ids
(&mut self)
src/driver_old/serial_old.rs:319
↓ 1 callersMethodnode_info_get
This function returns the GenericType for the node and the CommandClass.
src/basic/mod.rs:184
↓ 1 callersFunctionopen
( path: P, )
src/lib.rs:58
↓ 1 callersMethodread_single_msg
This function reads a single message from the ZWave device/driver
src/driver_old/serial_old.rs:81
↓ 1 callersMethodupdate_node_info
Updates the information of the node
src/basic/mod.rs:164
Methodbasic_get
(&self)
src/basic/mod.rs:209
Methodbasic_set
This function sets the basic status of the node.
src/basic/mod.rs:198
Methodcalc_value
generate the value out of the scale and byte vector
src/cmds/meter.rs:240
Methodchecksum
Returns the checksum for the given vector
src/defs.rs:137
Methodchecksum
Returns the checksum for the given vector
src/driver_old/serial_old.rs:578
Methodflush
(&mut self)
src/driver.rs:95
Methodfmt
How to print the error
src/error.rs:57
Methodfmt
(&self, f: &mut fmt::Formatter)
src/driver_old/serial_old.rs:435
Methodfrom
Transform std io errors to this crate error
src/error.rs:71
Methodfrom
Convert the message to a u8 vector
src/cmds/mod.rs:292
Methodget
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
Methodget
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
Methodget
Generate the message for the basic Command Class with the function to get a value.
src/cmds/basic.rs:16
Methodget
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
src/cmds/meter.rs:63
Methodget
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
Methodget_command
return the command as Vec<u8>
src/defs.rs:101
Methodget_commands
(&self)
src/basic/mod.rs:179
Methodget_hex
return the message as string in hex format
src/driver_old/serial_old.rs:573
Methodget_messages
Return a copy the message stack
src/driver_old/serial_old.rs:228
Methodget_node_generic_class
(&mut self, node_id: N)
src/driver_old/serial_old.rs:383
Methodget_precision_scale_size
extract the precision, scale and size as bit information
src/cmds/meter.rs:231
Methodget_rate_meter_type
(input: u8)
src/cmds/meter.rs:298
Methodget_scale
(&self)
src/defs.rs:462
Methodget_scale
(&self)
src/cmds/mod.rs:160
Methodget_v2
The Meter Get Command is used to request the accumulated consumption in physical units from a metering device.
src/cmds/meter.rs:77
Methodhandle_messages
(&self, h: Box<dyn Fn(SerialMsg) + Send>)
src/basic/mod.rs:110
Methodmeter_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
Methodmeter_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
Methodnew
Create a new serial driver based on the given stream
src/driver.rs:17
Methodnew
create a new message
src/defs.rs:12
Methodnew
Create a new error with a given type and description
src/error.rs:42
Methodnew
(node_id: u8, cmd_class: CommandClass, cmd: u8, data: Vec<u8>)
src/cmds/mod.rs:201
Methodnew
Create a new serial driver based on the given stream
src/driver_old/mod.rs:13
Methodnew
Creates a new SerialDriver which is a connection point to ZWave device & network.
src/driver_old/serial_old.rs:30
Methodnew
Generate a new Controller to interface with the z-wave network.
src/basic/mod.rs:50
Methodnew_header
create a new message with only the header
src/defs.rs:22
Methodnew_header
create a new message with only the header
src/driver_old/serial_old.rs:460
Methodnew_with_raw
create a new message
src/cmds/mod.rs:212
Methodnode
This function returns the defined node and a mutable reference to the z-wave driver.
src/basic/mod.rs:82
Methodnodes
Return all node ids
src/basic/mod.rs:101
Methodparse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/defs.rs:32
Methodparse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/cmds/mod.rs:229
Methodparse
Parse a `&[u8]` slice and try to convert it to a `Message`
src/driver_old/serial_old.rs:470
Methodpowerlevel_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
Methodpowerlevel_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
Methodpowerlevel_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
Methodpowerlevel_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
Functionprecision_scale_size
test the right conversion
src/cmds/meter.rs:314
Methodread
(&mut self, inp: &mut [u8])
src/driver.rs:71
Methodread_byte
Read a single byte from the stream and retries the amount of times as specified
src/driver.rs:22
Methodreport
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
Methodreport
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
Methodreport
Read a the Node_Information message and parse it to the type and command class types.
src/cmds/info.rs:18
Methodreport
Returns the basic node value
src/cmds/basic.rs:21
Methodreport
The Meter Report Command is used to advertise a meter reading.
src/cmds/meter.rs:97
Methodreport
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
Methodreport_v2
The Meter Report Command is used to advertise a meter reading.
src/cmds/meter.rs:153
Methodset
The Binary Switch Set command, version 1 is used to set a binary value.
src/cmds/switch_binary.rs:11
Methodset
The Multilevel Switch Set command, version 1 is used to set a u8 value.
src/cmds/switch_multilevel.rs:11
Methodset
Generate the message for the basic Command Class with the function to set a value.
src/cmds/basic.rs:10
Methodset
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
Methodswitch_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
Methodswitch_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
Methodswitch_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
Methodswitch_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
Functiontest_delayed_read_byte
()
src/driver.rs:124
Functiontest_new
()
src/driver.rs:101
Functiontest_new
()
src/driver_old/mod.rs:23
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_timeout_read_byte
()
src/driver.rs:107
Methodto_hex
Return a Vec<u8> into a String in a hex format.
src/defs.rs:126
Methodto_hex
Return a Vec<u8> into a String in a hex format.
src/driver_old/serial_old.rs:562
Methodto_meter_data
format the value into the right MeterData format
src/cmds/meter.rs:266
Methodtransform_array_of_u8_to_u16
transform two u8 into a u16 value
src/cmds/powerlevel.rs:209
Methodtransform_u16_to_array_of_u8
transform a u16 to a u8 array.
src/cmds/powerlevel.rs:202
Functiontransform_u16_to_u8
test the right conversion
src/cmds/powerlevel.rs:223
Functiontransform_u8_to_u16
test the right conversion
src/cmds/powerlevel.rs:232
Methodtry_from
(value: u8)
src/defs.rs:161
next →1–100 of 101, ranked by callers