PER Firmware
Loading...
Searching...
No Matches
mapper Namespace Reference

Classes

class  FDCANFilters
 
class  FilterBank
 
class  NodeMapping
 

Functions

Dict[str, NodeMappingmap_hardware (List[Node] nodes, Dict bus_configs)
 
bool is_fdcan_peripheral (str periph)
 
NodeMapping map_node_hardware (Node node, Dict bus_configs)
 
FDCANFilters map_fdcan_filters (str node_name, str periph, List msgs)
 
List[FilterBankmap_bxcan_filters (str node_name, str periph, List msgs)
 

Variables

int MAX_FDCAN_SID_FILTERS = 28
 
int MAX_FDCAN_XID_FILTERS = 8
 

Detailed Description

mapper.py

Author: Irving Wang (irvingw@purdue.edu)

Function Documentation

◆ is_fdcan_peripheral()

bool mapper.is_fdcan_peripheral ( str periph)
Check if peripheral is FDCAN (G4) vs bxCAN (F4/F7/L4)

◆ map_bxcan_filters()

List[FilterBank] mapper.map_bxcan_filters ( str node_name,
str periph,
List msgs )
Map messages to bxCAN filter banks

◆ map_fdcan_filters()

FDCANFilters mapper.map_fdcan_filters ( str node_name,
str periph,
List msgs )
Map messages to FDCAN standard and extended ID filter lists

◆ map_hardware()

Dict[str, NodeMapping] mapper.map_hardware ( List[Node] nodes,
Dict bus_configs )
Hardware Mapper stage.
Assigns physical resources (like bxCAN filter banks or FDCAN filter lists) to nodes.