include/rfid.h File Reference

RFID functions. More...

#include "../lib/rfid_common.h"
#include "rfid_tags.h"

Go to the source code of this file.

Functions

void rfid_enable (void)
void rfid_disable (void)
bool rfid_has_data (void)
uint8_t rfid_has_data_pwm (void *unused)
uint8_t rfid_get_data (rfid_t val)
bool rfid_cmp_tag_tag (rfid_t tag1, rfid_t tag2)
bool rfid_cmp_tag_constant (rfid_t tag, char *constant)
bool rfid_constant_to_tag (rfid_t tag, char *constant)

Detailed Description

RFID functions.

Definition in file rfid.h.


Function Documentation

bool rfid_cmp_tag_constant ( rfid_t  tag,
char *  constant 
)

compare rfid tag with string

Parameters:
[in]tagtag to compare
[in]conststring to compare return true if const matches to tag
bool rfid_cmp_tag_tag ( rfid_t  tag1,
rfid_t  tag2 
)

compare rfid tags

Parameters:
[in]tag1
[in]tag2
Returns:
true if tags are equal
bool rfid_constant_to_tag ( rfid_t  tag,
char *  constant 
)

convert string/constant to rfid_t

Parameters:
[out]tagdestination tag
[in]constantstring to convert
Returns:
true on success
void rfid_disable ( void  )

disables rfid

void rfid_enable ( void  )

enables rfid

uint8_t rfid_get_data ( rfid_t  val)

get rfid data

Parameters:
[out]valdata destination
Returns:
bool rfid_has_data ( void  )

check if rfid data was received

Returns:
  • true data available
  • false no data available