will-hart / blitz

An open source data acquisition system in Python
http://will-hart.github.io/blitz/
GNU Affero General Public License v3.0
0 stars 1 forks source link

Add flag / variable generation API on BaseExpansionBoard #15

Closed will-hart closed 10 years ago

will-hart commented 10 years ago

Rather than explicitly declaring the mapping in inherited boards, provide an API:

set_flag(flag_num, flag_title)
set_variable(bit_start, bit_end, variable_title)

This maps to the variable class and raises a Warning where a variable name is redefined. It does not identify or complain about duplicate or overlapping ranges.


will-hart commented 10 years ago

No need for this - current API is suitable


Original Comment By: Will Hart