diff --git a/docs/bootloader_serial.md b/docs/bootloader_serial.md index 99b7d79..d033197 100644 --- a/docs/bootloader_serial.md +++ b/docs/bootloader_serial.md @@ -449,6 +449,20 @@ machine that is also guaranteed to not have any special characters (like slashes) that would interfere with using as a file name. +### \_get\_serial\_port\_hashed\_to\_ip\_port +```py + +def _get_serial_port_hashed_to_ip_port(self) + +``` + + + +This is a bit of a hack, but it's means to find a reasonably unlikely +to collide port number based on the serial port used to talk to the +board. + + ### \_issue\_command ```py diff --git a/docs/helpers.md b/docs/helpers.md index fba82c0..8cb2bc3 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -154,6 +154,18 @@ def menu_new_yes_no(prompt='') Present an interactive yes/no prompt to the user. +### number\_or +```py + +def number_or(value) + +``` + + + +Try to format value as a number. If that fails, just leave it alone. + + ### plural ```py diff --git a/docs/tbfh.md b/docs/tbfh.md index 0ece794..795de9d 100644 --- a/docs/tbfh.md +++ b/docs/tbfh.md @@ -1703,6 +1703,70 @@ Return str(self). +## Class TBFTLVShortId +None +### \_\_init\_\_ +```py + +def __init__(self, buffer, parameters=[]) + +``` + + + +Initialize self. See help(type(self)) for accurate signature. + + +### get\_size +```py + +def get_size(self) + +``` + + + +### get\_tlvid +```py + +def get_tlvid(self) + +``` + + + +### object +```py + +def object(self) + +``` + + + +### pack +```py + +def pack(self) + +``` + + + +### \_\_str\_\_ +```py + +def __str__(self) + +``` + + + +Return str(self). + + + + ## Class TBFTLVUnknown None ### \_\_init\_\_