Skip to content

Commit

Permalink
Update drv bk to work correctly with sniffer, not tested, update exam…
Browse files Browse the repository at this point in the history
…ple to use also ea source
  • Loading branch information
RobertoAldea committed Dec 29, 2023
1 parent 89cbc4a commit 3be2002
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 127 deletions.
7 changes: 4 additions & 3 deletions code/drv_bk/src/wattrex_driver_bk/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@
###################### CONSTANTS ######################
# For further information check out README.md
DEFAULT_MAX_MSG : int = 100 # Max number of allowed message per chan
DEFAULT_MAX_MESSAGE_SIZE : int = 150 # Size of message sent through IPC message queue
DEFAULT_TX_CHAN : str = 'tx_scpi' #'TX_SCPI' # Name of the TX channel in CAN
DEFAULT_MAX_MESSAGE_SIZE : int = 400 # Size of message sent through IPC message queue
DEFAULT_TX_CHAN : str = 'TX_SCPI' #'TX_SCPI' # Name of the TX channel in CAN
DEFAULT_RX_CHAN: str = 'RX_SCPI_BK' #Name of the RX channel for epc
DEFAULT_MAX_VOLT: int =1000 #V # Max voltage allowed
DEFAULT_MAX_CURR: int = 20 #A # Max current allowed
DEFAULT_MAX_WAIT_TIME: int = 3
DEFAULT_TIME_BETWEEN_ATTEMPTS: float = 0.1
DEFAULT_MAX_READS: int = 10

CONSTANTS_NAMES = ('DEFAULT_MAX_VOLT', 'DEFAULT_MAX_CURR',
CONSTANTS_NAMES = ('DEFAULT_MAX_VOLT', 'DEFAULT_MAX_CURR', 'DEFAULT_MAX_READS',
'DEFAULT_MAX_MSG', 'DEFAULT_MAX_MESSAGE_SIZE',
'DEFAULT_TX_CHAN', 'DEFAULT_RX_CHAN', 'DEFAULT_MAX_WAIT_TIME')
sys_conf_update_config_params(context=globals(),
Expand Down
Loading

0 comments on commit 3be2002

Please sign in to comment.