|
PER Firmware
|
Classes | |
| class | bcolors |
Functions | |
| print_as_error (message) | |
| print_as_warning (message) | |
| print_as_ok (message) | |
| print_as_success (message) | |
| load_json (filepath) | |
| str | to_macro_name (str name) |
| get_git_hash () | |
| get_layout_hash (message) | |
| get_jinja_env () | |
| render_template (env, template_name, output_path, **context) | |
Variables | |
| BASE_DIR = Path(__file__).parent.parent | |
| str | SCHEMA_DIR = BASE_DIR / 'schema' |
| str | CONFIG_DIR = BASE_DIR / 'configs' |
| str | NODE_CONFIG_DIR = CONFIG_DIR / 'nodes' |
| str | EXTERNAL_NODE_CONFIG_DIR = CONFIG_DIR / 'external_nodes' |
| str | GENERATED_DIR = BASE_DIR / 'generated' |
| str | DBC_DIR = BASE_DIR / 'dbc' |
| str | BUS_CONFIG_PATH = CONFIG_DIR / 'system' / 'bus_configs.json' |
| str | COMMON_TYPES_CONFIG_PATH = CONFIG_DIR / 'system' / 'common_types.json' |
| dict | CTYPE_SIZES |
utils.py Author: Irving Wang (irvingw@purdue.edu)
| utils.get_git_hash | ( | ) |
Returns the short git hash of the current commit
| utils.get_jinja_env | ( | ) |
| utils.get_layout_hash | ( | message | ) |
Calculates a fingerprint hash for a message layout
| utils.load_json | ( | filepath | ) |
Load JSON file
| utils.print_as_error | ( | message | ) |
| utils.print_as_ok | ( | message | ) |
| utils.print_as_success | ( | message | ) |
| utils.print_as_warning | ( | message | ) |
| utils.render_template | ( | env, | |
| template_name, | |||
| output_path, | |||
| ** | context ) |
| str utils.to_macro_name | ( | str | name | ) |
| utils.BASE_DIR = Path(__file__).parent.parent |
| str utils.BUS_CONFIG_PATH = CONFIG_DIR / 'system' / 'bus_configs.json' |
| str utils.COMMON_TYPES_CONFIG_PATH = CONFIG_DIR / 'system' / 'common_types.json' |
| str utils.CONFIG_DIR = BASE_DIR / 'configs' |
| dict utils.CTYPE_SIZES |
| str utils.DBC_DIR = BASE_DIR / 'dbc' |
| str utils.EXTERNAL_NODE_CONFIG_DIR = CONFIG_DIR / 'external_nodes' |
| str utils.GENERATED_DIR = BASE_DIR / 'generated' |
| str utils.NODE_CONFIG_DIR = CONFIG_DIR / 'nodes' |
| str utils.SCHEMA_DIR = BASE_DIR / 'schema' |