Adafruit Fingerprint Arduino Library
Macros
Adafruit_Fingerprint.cpp File Reference
#include "Adafruit_Fingerprint.h"

Macros

#define GET_CMD_PACKET(...)
 Gets the command packet. More...
 
#define SEND_CMD_PACKET(...)
 Sends the command packet. More...
 

Macro Definition Documentation

◆ GET_CMD_PACKET

#define GET_CMD_PACKET (   ...)
Value:
uint8_t data[] = {__VA_ARGS__}; \
Adafruit_Fingerprint_Packet packet(FINGERPRINT_COMMANDPACKET, sizeof(data), \
data); \
writeStructuredPacket(packet); \
if (getStructuredPacket(&packet) != FINGERPRINT_OK) \
if (packet.type != FINGERPRINT_ACKPACKET) \
#define FINGERPRINT_COMMANDPACKET
Command packet.
Definition: Adafruit_Fingerprint.h:51
#define FINGERPRINT_ACKPACKET
Acknowledge packet.
Definition: Adafruit_Fingerprint.h:54
#define FINGERPRINT_PACKETRECIEVEERR
Error when receiving data package.
Definition: Adafruit_Fingerprint.h:17
#define FINGERPRINT_OK
Command execution is complete.
Definition: Adafruit_Fingerprint.h:16

Gets the command packet.

◆ SEND_CMD_PACKET

#define SEND_CMD_PACKET (   ...)
Value:
GET_CMD_PACKET(__VA_ARGS__); \
return packet.data[0];
#define GET_CMD_PACKET(...)
Gets the command packet.
Definition: Adafruit_Fingerprint.cpp:36

Sends the command packet.