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
qrcode.c File Reference
#include "qrcode.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for qrcode.c:

Go to the source code of this file.

Data Structures

struct  BitBucket
 

Macros

#define PENALTY_N1   3
 
#define PENALTY_N2   3
 
#define PENALTY_N3   40
 
#define PENALTY_N4   10
 

Typedefs

typedef struct BitBucket BitBucket
 

Functions

uint16_t qrcode_getBufferSize (uint8_t version)
 
int8_t qrcode_initBytes (QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, uint8_t *data, uint16_t length)
 
int8_t qrcode_initText (QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, const char *data)
 
bool qrcode_getModule (QRCode *qrcode, uint8_t x, uint8_t y)
 

Macro Definition Documentation

◆ PENALTY_N1

#define PENALTY_N1   3

Definition at line 480 of file qrcode.c.

◆ PENALTY_N2

#define PENALTY_N2   3

Definition at line 481 of file qrcode.c.

◆ PENALTY_N3

#define PENALTY_N3   40

Definition at line 482 of file qrcode.c.

◆ PENALTY_N4

#define PENALTY_N4   10

Definition at line 483 of file qrcode.c.

Typedef Documentation

◆ BitBucket

typedef struct BitBucket BitBucket

Function Documentation

◆ qrcode_getBufferSize()

uint16_t qrcode_getBufferSize ( uint8_t version)

Definition at line 775 of file qrcode.c.

Here is the caller graph for this function:

◆ qrcode_getModule()

bool qrcode_getModule ( QRCode * qrcode,
uint8_t x,
uint8_t y )

Definition at line 860 of file qrcode.c.

Here is the caller graph for this function:

◆ qrcode_initBytes()

int8_t qrcode_initBytes ( QRCode * qrcode,
uint8_t * modules,
uint8_t version,
uint8_t ecc,
uint8_t * data,
uint16_t length )

Definition at line 780 of file qrcode.c.

Here is the caller graph for this function:

◆ qrcode_initText()

int8_t qrcode_initText ( QRCode * qrcode,
uint8_t * modules,
uint8_t version,
uint8_t ecc,
const char * data )

Definition at line 856 of file qrcode.c.

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