Support for QR Code generation, see https://github.com/ricmoo/QRCode for details.
More...
|
#define | MODE_NUMERIC 0 |
| Numeric mode.
|
|
#define | MODE_ALPHANUMERIC 1 |
| Alphanumeric mode.
|
|
#define | MODE_BYTE 2 |
| Binary mode.
|
|
#define | ECC_LOW 0 |
| ECC low.
|
|
#define | ECC_MEDIUM 1 |
| ECC medium.
|
|
#define | ECC_QUARTILE 2 |
| ECC quartile.
|
|
#define | ECC_HIGH 3 |
| ECC high.
|
|
|
typedef struct QRCode | QRCode |
| QR code data structure.
|
|
|
uint16_t | qrcode_getBufferSize (uint8_t version) |
| QR code buffer size required for given version.
|
|
int8_t | qrcode_initText (QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, const char *data) |
| Generate QR code for given string.
|
|
int8_t | qrcode_initBytes (QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, uint8_t *data, uint16_t length) |
| Generate QR code for given data.
|
|
bool | qrcode_getModule (QRCode *qrcode, uint8_t x, uint8_t y) |
| Get QR code "bit" at given x,y position.
|
|
Support for QR Code generation, see https://github.com/ricmoo/QRCode for details.
◆ qrcode_getBufferSize()
uint16_t qrcode_getBufferSize |
( |
uint8_t | version | ) |
|
QR code buffer size required for given version.
- Parameters
-
◆ qrcode_getModule()
bool qrcode_getModule |
( |
QRCode * | qrcode, |
|
|
uint8_t | x, |
|
|
uint8_t | y ) |
Get QR code "bit" at given x,y position.
- Parameters
-
qrcode | QR code structure |
x | x position |
y | y position |
◆ qrcode_initBytes()
int8_t qrcode_initBytes |
( |
QRCode * | qrcode, |
|
|
uint8_t * | modules, |
|
|
uint8_t | version, |
|
|
uint8_t | ecc, |
|
|
uint8_t * | data, |
|
|
uint16_t | length ) |
Generate QR code for given data.
- Parameters
-
qrcode | QR code structure |
modules | Buffer for QR code data |
version | QR code version |
ecc | QR code ECC |
data | Data to encode |
length | Number of bytes to encoded |
◆ qrcode_initText()
int8_t qrcode_initText |
( |
QRCode * | qrcode, |
|
|
uint8_t * | modules, |
|
|
uint8_t | version, |
|
|
uint8_t | ecc, |
|
|
const char * | data ) |
Generate QR code for given string.
- Parameters
-
qrcode | QR code structure |
modules | Buffer for QR code data |
version | QR code version |
ecc | QR code ECC |
data | String to encode |