-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* universal/common/parsing updates 8/1 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * parsing/readme fixes fixed mypy errors in parsing. switched readme unpacker object. added spacing to common * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9a9d09d
commit 1ee9136
Showing
3 changed files
with
195 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from . import tools | ||
|
||
|
||
def set_primary_variable_lower_range_value(address: bytes, value) -> bytes: | ||
return tools.pack_command(address, command_id=37) | ||
|
||
|
||
def reset_configuration_changed_flag(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=38) | ||
|
||
|
||
def perform_master_reset(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=42) | ||
|
||
|
||
def read_additional_transmitter_status(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=48) | ||
|
||
|
||
def read_dynamic_variable_assignments(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=50) | ||
|
||
|
||
def write_number_of_response_preambles(address: bytes, number: int) -> bytes: | ||
data = number.to_bytes(1, "big") # check for bytes in manual | ||
return tools.pack_command(address, command_id=59, data=data) | ||
|
||
|
||
def toggle_analog_output_mode(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=66) | ||
|
||
|
||
def trim_analog_output_zero(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=67) | ||
|
||
|
||
def trim_analog_output_span(address: bytes) -> bytes: | ||
return tools.pack_command(address, command_id=68) | ||
|
||
|
||
def select_baud_rate(address: bytes, rate: int) -> bytes: | ||
data = rate.to_bytes(1, "big") # check bytes in manual | ||
return tools.pack_command(address, command_id=123, data=data) |