The worst-case number of bytes needed to store one QR Code, up to and including version 40. This value equals 3918, which is just under 4 kilobytes. Use this more convenient value to avoid calculating tighter memory bounds for buffers.
",355:"
String of error correction level
",357:"
Describes how a segment\'s data bits are interpreted.
",359:"
bool QRCode_EncodeText(
const
char
*
text,
u8
tempBuffer[],
u8
qrcode[]
)
Encodes the given text string to a QR Code, returning TRUE if successful. If the data is too long to fit in any version in the given range at the given ECC level, then FALSE is returned.
",360:"
bool QRCode_EncodeSegmentsAdvanced(
const
QRCode_Segment
segs[],
u8
len,
u8
tempBuffer[],
u8
qrcode[]
)
Encodes the given segments to a QR Code, returning TRUE if successful. If the data is too long to fit in any version in the given range at the given ECC level, then FALSE is returned.
",361:"
inline u8 QRCode_GetSize(
const
u8
qrcode[]
)
Returns the side length of the given QR Code, assuming that encoding succeeded. The result is in the range [21, 177]. Note that the length of the array buffer is related to the side length - every \'u8 qrcode[]\' must have length at least QRCODE_BUFFER_LEN_FOR_VERSION(version), which equals ceil(size^2 / 8 + 1).
",362:"
bool QRCode_GetModule(
const
u8
qrcode[],
u8
x,
u8
y
)
Returns the color of the module (pixel) at the given coordinates, which is FALSE for light or TRUE for dark. The top left corner has the coordinates (x=0, y=0). Coordinates must be in bounds.
",363:"
u8 QRCode_GetByte(
const
u8
qrcode[],
u8
x,
u8
y
)
Returns colors of 8 module (byte) at the given coordinates, which is 0 for light or 1 for dark. The top left corner has the coordinates (x=0, y=0).