SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
QrSegment Class Reference

#include <QrSegment.hpp>

Collaboration diagram for QrSegment:

Data Structures

class  Mode
 

Public Member Functions

 QrSegment (const Mode &md, int numCh, const std::vector< uint8_t > &b, int bitLen)
 

Static Public Member Functions

static QrSegment makeBytes (const std::vector< uint8_t > &data)
 
static QrSegment makeNumeric (const char *digits)
 
static QrSegment makeAlphanumeric (const char *text)
 
static std::vector< QrSegmentmakeSegments (const char *text)
 
static bool isAlphanumeric (const char *text)
 
static bool isNumeric (const char *text)
 
static int getTotalBits (const std::vector< QrSegment > &segs, int version)
 

Data Fields

const Mode mode
 
const int numChars
 
const std::vector< uint8_t > data
 
const int bitLength
 

Detailed Description

Definition at line 41 of file QrSegment.hpp.

Constructor & Destructor Documentation

◆ QrSegment()

QrSegment ( const Mode & md,
int numCh,
const std::vector< uint8_t > & b,
int bitLen )

Definition at line 122 of file QrSegment.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ getTotalBits()

int getTotalBits ( const std::vector< QrSegment > & segs,
int version )
static

Definition at line 132 of file QrSegment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAlphanumeric()

bool isAlphanumeric ( const char * text)
static

Definition at line 148 of file QrSegment.cpp.

Here is the caller graph for this function:

◆ isNumeric()

bool isNumeric ( const char * text)
static

Definition at line 158 of file QrSegment.cpp.

Here is the caller graph for this function:

◆ makeAlphanumeric()

qrcodegen::QrSegment makeAlphanumeric ( const char * text)
static

Definition at line 81 of file QrSegment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeBytes()

qrcodegen::QrSegment makeBytes ( const std::vector< uint8_t > & data)
static

Definition at line 53 of file QrSegment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeNumeric()

qrcodegen::QrSegment makeNumeric ( const char * digits)
static

Definition at line 58 of file QrSegment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSegments()

std::vector< qrcodegen::QrSegment > makeSegments ( const char * text)
static

Definition at line 104 of file QrSegment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ bitLength

const int bitLength

Definition at line 146 of file QrSegment.hpp.

◆ data

const std::vector<uint8_t> data

Definition at line 143 of file QrSegment.hpp.

◆ mode

const Mode mode

Definition at line 137 of file QrSegment.hpp.

◆ numChars

const int numChars

Definition at line 140 of file QrSegment.hpp.


The documentation for this class was generated from the following files: