CTS-SAT-1-OBC-Firmware
|
Functions | |
str | get_git_file_modified_info (Path|str file_path) |
pl.DataFrame | read_ioc_file (Path|str ioc_file_path) |
pl.DataFrame | make_pin_table (Path|str ioc_file_path) |
generate_markdown_table_file (Path|str ioc_file_path, Path|str output_path) | |
main () | |
Variables | |
str | MD_FILE_TEMPLATE |
Generate a list of pins, in a Markdown file, from the IOC file. Run this script with: ```bash pip install uv uv run docs/generation/build_pin_list.py ``` The `uv` tool automatically installs the required dependencies specified in the `dependencies` section below.
build_pin_list.generate_markdown_table_file | ( | Path | str | ioc_file_path, |
Path | str | output_path ) |
Writes the pin table as a Markdown file.
str build_pin_list.get_git_file_modified_info | ( | Path | str | file_path | ) |
Returns the last modified date of the file, according to Git. Returns a string with the full date and time, and the short commit hash.
build_pin_list.main | ( | void | ) |
pl.DataFrame build_pin_list.make_pin_table | ( | Path | str | ioc_file_path | ) |
Generates a table of pins from the IOC file. Each row is a pin (with a Pin ID like 'PA0'). Columns are human-readable names (e.g., 'GPIO Pin Label').
pl.DataFrame build_pin_list.read_ioc_file | ( | Path | str | ioc_file_path | ) |
Reads the IOC file and returns a DataFrame. Has columns: ["parameter", "value"]
str build_pin_list.MD_FILE_TEMPLATE |