Module Expr Str ImportFrom alias alias alias ImportFrom alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpLShift Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str keyword NameLoad keyword Call AttributeLoad Str attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Str orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body If CompareIn AttributeLoad NameLoad attr Call NameLoad TupleLoad Num Num Num Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpLShift Num AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body If CompareLtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BinOpLShift Num BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpBitOr BinOpLShift BinOpSub AttributeLoad NameLoad attr Num Num Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body If CompareIn AttributeLoad NameLoad attr Call NameLoad TupleLoad Num Num Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str If CompareLt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num If CompareLt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn NameLoad Call NameLoad ListLoad Str Str Str body AugAssignBitOr AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad Call NameLoad ListLoad Str Str Str body AugAssignBitOr AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad Call NameLoad ListLoad Str Str Str body AugAssignBitOr AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareNotIn AttributeLoad NameLoad attr Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpLShift Num AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Return Call NameLoad NameLoad Num orelse Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Return CompareNotEq Call NameLoad NameLoad Num Num orelse If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list
N/A N/A 
Option parsing library for pycrc.
use as follows:

   from crc_opt import Options

   opt = Options()
   opt.parse(sys.argv[1:])
 optparse OptionParser Option OptionValueError copy copy N/A sys crc_models CrcModels Options N/A object N/A N/A 
    The options parsing and validating class.
     N/A program_name pycrc N/A version 0.9 N/A version_str N/A N/A {0:s} v{1:s} format program_name version N/A web_address https://pycrc.org N/A algo_none 0 N/A algo_bit_by_bit 1 N/A algo_bit_by_bit_fast 2 N/A algo_table_driven 8 N/A action_check_str 1 N/A action_check_hex_str 2 N/A action_check_file 3 N/A action_generate_h 4 N/A action_generate_c 5 N/A action_generate_c_main 6 N/A action_generate_table 7 __init__ N/A N/A self N/A N/A N/A N/A self width None N/A N/A self poly None N/A N/A self reflect_in None N/A N/A self xor_in None N/A N/A self reflect_out None N/A N/A self xor_out None N/A N/A self tbl_idx_width 8 N/A N/A self tbl_width N/A 1 N/A self tbl_idx_width N/A N/A self slice_by 1 N/A N/A self verbose False N/A N/A self check_string 123456789 N/A N/A self msb_mask None N/A N/A self mask None N/A N/A self algorithm N/A self algo_none N/A N/A self symbol_prefix crc_ N/A N/A self crc_type None N/A N/A self include_files N/A N/A N/A self output_file None N/A N/A self action N/A self action_check_str N/A N/A self check_file None N/A N/A self c_std None N/A N/A self undefined_crc_parameters False N/A parse N/A N/A self argv N/A None N/A N/A 
        Parses and validates the options given as arguments
         N/A usage python %prog [OPTIONS]

To calculate the checksum of a string or hexadecimal data:
    python %prog [model] --check-string "123456789"
    python %prog [model] --check-hexstring "313233343536373839"

To calculate the checksum of a file:
    python %prog [model] --check-file filename

To generate the C source code and write it to filename:
    python %prog [model] --generate c -o filename

The model can be defined either with the --model switch or by specifying each
of the following parameters:
    --width --poly --reflect-in --xor-in --reflect-out --xor-out N/A models N/A CrcModels N/A model_list N/A N/A ,  join N/A N/A models get_list N/A parser N/A OptionParser option_class MyOption usage usage version N/A self version_str N/A N/A N/A parser add_option -v --verbose action store_true dest verbose default False help be more verbose; print the value of the parameters and the chosen model to stdout N/A N/A N/A parser add_option --check-string action store type string dest check_string help calculate the checksum of a string (default: '123456789') metavar STRING N/A N/A N/A parser add_option --check-hexstring action store type string dest check_hexstring help calculate the checksum of a hexadecimal number string metavar STRING N/A N/A N/A parser add_option --check-file action store type string dest check_file help calculate the checksum of a file metavar FILE N/A N/A N/A parser add_option --generate action store type string dest generate default None help generate C source code; choose the type from {h, c, c-main, table} metavar CODE N/A N/A N/A parser add_option --std action store type string dest c_std default C99 help choose the C dialect of the generated code from {C89, ANSI, C99} metavar STD N/A N/A N/A parser add_option --algorithm action store type string dest algorithm default all help choose an algorithm from {bit-by-bit, bbb, bit-by-bit-fast, bbf, table-driven, tbl, all} metavar ALGO N/A N/A N/A parser add_option --model action callback callback _model_cb type string dest model default None help N/A N/A choose a parameter set from {{{0:s}}} format model_list metavar MODEL N/A N/A N/A parser add_option --width action store type hex dest width help use NUM bits in the polynomial metavar NUM N/A N/A N/A parser add_option --poly action store type hex dest poly help use HEX as polynomial metavar HEX N/A N/A N/A parser add_option --reflect-in action store type bool dest reflect_in help reflect the octets in the input message metavar BOOL N/A N/A N/A parser add_option --xor-in action store type hex dest xor_in help use HEX as initial value metavar HEX N/A N/A N/A parser add_option --reflect-out action store type bool dest reflect_out help reflect the resulting checksum before applying the --xor-out value metavar BOOL N/A N/A N/A parser add_option --xor-out action store type hex dest xor_out help xor the final CRC value with HEX metavar HEX N/A N/A N/A parser add_option --slice-by action store type int dest slice_by help read NUM bytes at a time from the input. NUM must be one of the values {4, 8, 16} metavar NUM N/A N/A N/A parser add_option --table-idx-width action store type int dest table_idx_width help use NUM bits to index the CRC table; NUM must be one of the values {1, 2, 4, 8} metavar NUM N/A N/A N/A parser add_option --symbol-prefix action store type string dest symbol_prefix help when generating source code, use STRING as prefix to the exported C symbols metavar STRING N/A N/A N/A parser add_option --crc-type action store type string dest crc_type help when generating source code, use STRING as crc_t type metavar STRING N/A N/A N/A parser add_option --include-file action append type string dest include_files help when generating source code, include also FILE as header file; can be specified multiple times metavar FILE N/A N/A N/A parser add_option -o --output action store type string dest output_file help write the generated code to file instead to stdout metavar FILE N/A N/A options args N/A N/A parser parse_args argv N/A N/A N/A options c_std None N/A N/A std N/A N/A N/A options c_std upper N/A N/A N/A std ANSI N/A std C89 N/A N/A N/A self c_std C89 N/A N/A N/A std C99 N/A N/A N/A self c_std std N/A N/A N/A N/A self __error N/A N/A unknown C standard {0:s} format N/A options c_std N/A undefined_params N/A N/A N/A N/A options width None N/A N/A N/A self width N/A options width N/A N/A N/A N/A undefined_params append --width N/A N/A N/A options poly None N/A N/A N/A self poly N/A options poly N/A N/A N/A N/A undefined_params append --poly N/A N/A N/A options reflect_in None N/A N/A N/A self reflect_in N/A options reflect_in N/A N/A N/A N/A undefined_params append --reflect-in N/A N/A N/A options xor_in None N/A N/A N/A self xor_in N/A options xor_in N/A N/A N/A N/A undefined_params append --xor-in N/A N/A N/A options reflect_out None N/A N/A N/A self reflect_out N/A options reflect_out N/A N/A N/A N/A undefined_params append --reflect-out N/A N/A N/A options xor_out None N/A N/A N/A self xor_out N/A options xor_out N/A N/A N/A N/A undefined_params append --xor-out N/A N/A N/A options table_idx_width None N/A N/A N/A N/A options table_idx_width N/A set N/A 1 2 4 8 N/A N/A N/A self tbl_idx_width N/A options table_idx_width N/A N/A self tbl_width N/A 1 N/A options table_idx_width N/A N/A N/A N/A self __error N/A N/A unsupported table-idx-width {0:d} format N/A options table_idx_width N/A N/A N/A self width None N/A N/A N/A N/A self width 0 N/A N/A N/A N/A self __error Width must be strictly positive N/A N/A self msb_mask N/A 1 N/A N/A self width 1 N/A N/A self mask N/A N/A N/A N/A self msb_mask 1 1 1 N/A N/A N/A self poly None N/A N/A N/A self poly N/A N/A self poly N/A self mask N/A N/A N/A self xor_in None N/A N/A N/A self xor_in N/A N/A self xor_in N/A self mask N/A N/A N/A self xor_out None N/A N/A N/A self xor_out N/A N/A self xor_out N/A self mask N/A N/A N/A self msb_mask None N/A N/A self mask None N/A N/A N/A N/A self width None N/A N/A self poly None N/A N/A self reflect_in None N/A N/A self xor_in None N/A N/A self reflect_out None N/A N/A self xor_out None N/A N/A N/A self undefined_crc_parameters True N/A N/A N/A self undefined_crc_parameters False N/A N/A N/A options slice_by None N/A N/A N/A N/A options slice_by N/A set N/A 4 8 16 N/A N/A N/A self slice_by N/A options slice_by N/A N/A N/A N/A self __error N/A N/A unsupported slice-by {0:d} format N/A options slice_by N/A N/A self undefined_crc_parameters N/A N/A N/A N/A self __error slice-by is only implemented for fully defined models N/A N/A N/A self tbl_idx_width 8 N/A N/A N/A N/A self __error slice-by is only implemented for table-idx-width=8 N/A N/A N/A self width 8 N/A N/A N/A N/A self __warning N/A N/A disabling slice-by for width {0} format N/A self width N/A N/A self slice_by 1 N/A N/A N/A self width 16 N/A N/A N/A N/A self __warning N/A N/A disabling slice-by for width {0} format N/A self width N/A N/A self slice_by 1 N/A N/A N/A self width 32 N/A N/A N/A N/A self __warning N/A N/A disabling slice-by for width {0} format N/A self width N/A N/A self slice_by 1 N/A N/A N/A self reflect_in N/A N/A N/A N/A self __warning disabling slice-by for non-reflected algorithm N/A N/A self slice_by 1 N/A N/A N/A self c_std C89 N/A N/A N/A N/A self __error --slice-by not supported for C89 N/A N/A N/A options algorithm None N/A N/A alg N/A N/A N/A options algorithm lower N/A N/A alg N/A set N/A bit-by-bit bbb all N/A N/A N/A self algorithm N/A self algo_bit_by_bit N/A N/A alg N/A set N/A bit-by-bit-fast bbf all N/A N/A N/A self algorithm N/A self algo_bit_by_bit_fast N/A N/A alg N/A set N/A table-driven tbl all N/A N/A N/A self algorithm N/A self algo_table_driven N/A N/A N/A self algorithm 0 N/A N/A N/A N/A self __error N/A N/A unknown algorithm {0:s} format N/A options algorithm N/A N/A N/A options symbol_prefix None N/A N/A N/A self symbol_prefix N/A options symbol_prefix N/A N/A N/A options include_files None N/A N/A N/A self include_files N/A options include_files N/A N/A N/A options crc_type None N/A N/A N/A self crc_type N/A options crc_type N/A N/A N/A options output_file None N/A N/A N/A self output_file N/A options output_file N/A op_count 0 N/A N/A N/A options check_string None N/A N/A N/A self action N/A self action_check_str N/A N/A self check_string N/A options check_string N/A op_count 1 N/A N/A N/A options check_hexstring None N/A N/A N/A self action N/A self action_check_hex_str N/A N/A self check_string N/A options check_hexstring N/A op_count 1 N/A N/A N/A options check_file None N/A N/A N/A self action N/A self action_check_file N/A N/A self check_file N/A options check_file N/A op_count 1 N/A N/A N/A options generate None N/A N/A arg N/A N/A N/A options generate lower N/A N/A arg h N/A N/A N/A self action N/A self action_generate_h N/A N/A N/A arg c N/A N/A N/A self action N/A self action_generate_c N/A N/A N/A arg c-main N/A N/A N/A self action N/A self action_generate_c_main N/A N/A N/A arg table N/A N/A N/A self action N/A self action_generate_table N/A N/A N/A N/A self __error N/A N/A don't know how to generate {0:s} format N/A options generate N/A op_count 1 N/A N/A N/A self action N/A self action_generate_table N/A N/A N/A N/A N/A self algorithm N/A self algo_table_driven 0 N/A N/A N/A N/A self __error the --generate table option is incompatible with the --algorithm option N/A N/A self algorithm N/A self algo_table_driven N/A N/A N/A N/A self algorithm N/A set N/A N/A self algo_bit_by_bit N/A self algo_bit_by_bit_fast N/A self algo_table_driven N/A N/A N/A N/A self __error select an algorithm to be used in the generated file N/A N/A N/A N/A self tbl_idx_width 8 N/A N/A N/A N/A self __warning reverting to Table Index Width = 8 for internal CRC calculation N/A N/A self tbl_idx_width 8 N/A N/A self tbl_width N/A 1 N/A options table_idx_width N/A N/A op_count 0 N/A N/A N/A self action N/A self action_check_str N/A N/A op_count 1 N/A N/A N/A N/A self __error too many actions scecified N/A N/A N/A len args 0 N/A N/A N/A N/A self __error N/A N/A unrecognized argument(s): {0:s} format N/A N/A join args N/A def_params_acts N/A N/A self action_check_str N/A self action_check_hex_str N/A self action_check_file N/A self action_generate_table N/A N/A N/A self undefined_crc_parameters N/A N/A self action N/A set def_params_acts N/A N/A N/A N/A self __error N/A N/A undefined parameters: Add {0:s} or use --model format N/A N/A ,  join undefined_params N/A N/A self verbose N/A options verbose N/A __warning N/A N/A self message N/A N/A N/A 
        Print a warning message to stderr.
         N/A N/A N/A N/A sys stderr write N/A N/A {0:s}: warning: {1:s}
 format N/A N/A sys argv N/A 0 message N/A __error N/A N/A self message N/A N/A N/A 
        Print a error message to stderr and terminate the program.
         N/A N/A N/A N/A sys stderr write N/A N/A {0:s}: error: {1:s}
 format N/A N/A sys argv N/A 0 message N/A N/A N/A sys exit 1 N/A N/A _model_cb N/A N/A option opt_str value parser N/A N/A N/A 
    This function sets up the single parameters if the 'model' option has been selected
    by the user.
     N/A model_name N/A N/A value lower N/A models N/A CrcModels N/A model N/A N/A models get_params model_name N/A N/A model None N/A N/A N/A setattr N/A parser values width N/A model N/A width N/A N/A setattr N/A parser values poly N/A model N/A poly N/A N/A setattr N/A parser values reflect_in N/A model N/A reflect_in N/A N/A setattr N/A parser values xor_in N/A model N/A xor_in N/A N/A setattr N/A parser values reflect_out N/A model N/A reflect_out N/A N/A setattr N/A parser values xor_out N/A model N/A xor_out N/A N/A models N/A CrcModels N/A model_list N/A N/A ,  join N/A N/A models get_list N/A N/A OptionValueError N/A N/A unsupported model {0:s}. Supported models are: {1:s}. format value model_list N/A _check_hex N/A N/A dummy_option opt value N/A N/A N/A 
    Checks if a value is given in a decimal integer of hexadecimal reppresentation.
    Returns the converted value or rises an exception on error.
     N/A N/A N/A N/A N/A N/A N/A value lower startswith 0x N/A N/A N/A int value 16 N/A N/A N/A int value N/A N/A N/A ValueError N/A N/A N/A OptionValueError N/A N/A option {0:s}: invalid integer or hexadecimal value: {1:s}. format opt value N/A _check_bool N/A N/A dummy_option opt value N/A N/A N/A 
    Checks if a value is given as a boolean value (either 0 or 1 or "true" or "false")
    Returns the converted value or rises an exception on error.
     N/A N/A N/A value isdigit N/A N/A N/A N/A int value 10 0 N/A N/A N/A N/A N/A value lower false N/A N/A False N/A N/A N/A N/A N/A value lower true N/A N/A True N/A N/A N/A OptionValueError N/A N/A option {0:s}: invalid boolean value: {1:s}. format opt value N/A MyOption N/A Option N/A N/A 
    New option parsing class extends the Option class
     N/A TYPES N/A N/A Option TYPES N/A hex bool N/A TYPE_CHECKER N/A copy N/A Option TYPE_CHECKER N/A N/A TYPE_CHECKER N/A hex _check_hex N/A N/A TYPE_CHECKER N/A bool _check_bool N/A