EQRCode.SpecTable (EQRCode v0.1.8) View Source

Link to this section Summary

Link to this section Types

Link to this type

error_correction_level()

View Source

Specs

error_correction_level() :: :l | :m | :q | :h

Specs

mode() :: :numeric | :alphanumeric | :byte | :kenji | :eci

Specs

version() :: 1..40

Link to this section Functions

Link to this function

character_count_indicator_bits(version, ec_level, mode \\ :byte)

View Source

Specs

character_count_indicator_bits(version(), error_correction_level(), mode()) ::
  non_neg_integer()
Link to this function

code_words_len(version, error_correction_level)

View Source

Specs

code_words_len(version(), error_correction_level()) :: non_neg_integer()
Link to this function

ec_codewords_per_block(version, error_correction_level)

View Source

Specs

ec_codewords_per_block(version(), error_correction_level()) :: non_neg_integer()
Link to this function

error_correction_level()

View Source
Link to this function

error_corretion_bits(error_correction_level)

View Source

Specs

error_corretion_bits(error_correction_level()) :: 1..3
Link to this function

find_version(bin_len, ec_level \\ :h, mode \\ :byte)

View Source

Specs

find_version(non_neg_integer(), error_correction_level(), mode()) ::
  {:error, :no_version_found} | {:ok, version()}
Link to this function

group1_block_len(version, error_correction_level)

View Source

Specs

group1_block_len(version(), error_correction_level()) :: non_neg_integer()
Link to this function

group1_codewords_per_block(version, error_correction_level)

View Source

Specs

group1_codewords_per_block(version(), error_correction_level()) ::
  non_neg_integer()
Link to this function

group2_block_len(version, error_correction_level)

View Source

Specs

group2_block_len(version(), error_correction_level()) :: non_neg_integer()
Link to this function

group2_codewords_per_block(version, error_correction_level)

View Source

Specs

group2_codewords_per_block(version(), error_correction_level()) ::
  non_neg_integer()
Link to this function

mode_indicator(mode \\ :byte)

View Source

Specs

remainer(any()) :: 0..7
Link to this function

version_information_bits(version)

View Source

Specs

version_information_bits(version()) :: 1..1_114_111