gen_avr8.pro.osc_selector module

Module
osc_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 OSCSelector with attribute(s) and method(s). Selecting FOSC for generating process of project structure.
class gen_avr8.pro.osc_selector.OSCSelector(verbose=False)[source]

Bases: ats_utilities.config_io.base_check.FileChecking

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

attributes:
GEN_VERBOSE - console text indicator for process-phase.
FOSC_LIST - configuration file with FOSC list.
__fosc_list - FOSC list.
methods:
__init__ - initial constructor.
get_fosc_list - getter for FOSC list object.
choose_osc - select FOSC for target.
__str__ - dunder method for OSCSelector.
FOSC_LIST = '/../conf/fosc.yaml'
GEN_VERBOSE = 'GEN_AVR8::PRO::OSC_SELECTOR'
VERBOSE = 'ATS_UTILITIES'
choose_osc(verbose=False)[source]

Select FOSC for target.

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

Getter for FOSC list object.

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