CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_api_qr.cpp File Reference

QR host API: thin mapping onto the cdc_views QrRaster engine. More...

Go to the source code of this file.

Functions

int host_qr_measure (const char *data, uint8_t max_version, uint8_t ecc, uint16_t *out_modules)
 Measure the QR module count for data without rendering.
int host_qr_render_bitmap (const char *data, uint8_t max_version, uint8_t ecc, uint8_t scale, uint8_t quiet_modules, uint8_t *out, size_t out_size, uint16_t *out_stride_bytes, uint16_t *out_height_px)
 Encode data into a packed 1-bpp QR raster.

Detailed Description

QR host API: thin mapping onto the cdc_views QrRaster engine.

No capability gate - pure compute on caller-supplied memory, like the crypto helpers.

Definition in file host_api_qr.cpp.