gen_avr8.pro.mcu_selector module

Module
mcu_selector.py
Copyright
Copyright (C) 2018 Vladimir Roncevic <elektron.ronca@gmail.com> gen_avr8 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gen_avr8 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Info
Defined class MCUSelector with attribute(s) and method(s). Selecting MCU target for generating process of project structure.
class gen_avr8.pro.mcu_selector.MCUSelector(verbose=False)[source]

Bases: ats_utilities.config_io.base_check.FileChecking

Defined class MCUSelector with attribute(s) and method(s). Selecting MCU target for generating process of project structure. It defines:

attributes:
GEN_VERBOSE - console text indicator for process-phase.
MCU_LIST - configuration file with MCU list.
__mcu_list - MCU list.
methods:
__init__ - initial constructor.
get_mcu_list - getter for MCU list object.
choose_mcu - select MCU target.
__str__ - dunder method for MCUSelector.
GEN_VERBOSE = 'GEN_AVR8::PRO::MCU_SELECTOR'
MCU_LIST = '/../conf/mcu.yaml'
VERBOSE = 'ATS_UTILITIES'
choose_mcu(verbose=False)[source]

Select MCU target.

Parameters:verbose (<bool>) – enable/disable verbose option.
Returns:MCU name | None.
Return type:<str> | <NoneType>
Exceptions:None
get_mcu_list()[source]

Getter for MCU list object.

Returns:MCU list | None.
Return type:<list> | <NoneType>
Exceptions:None