Defines | Functions

arygon.c File Reference

ARYGON readers driver. More...

#include "../drivers.h"
#include <stdio.h>
#include <string.h>
#include "arygon.h"
#include <nfc/nfc-messages.h>
#include "uart.h"

Go to the source code of this file.

Defines

#define DEV_ARYGON_PROTOCOL_ARYGON_ASCII   '0'
 High level language in ASCII format. (Common µC commands and Mifare® commands).
#define DEV_ARYGON_PROTOCOL_TAMA   '2'
 Philips protocol (TAMA language) in binary format.
#define DEV_ARYGON_PROTOCOL_TAMA_WAB   '3'
 Philips protocol (TAMA language) in binary With AddressingByte for party line.

Functions

bool arygon_check_communication (const nfc_device_spec_t nds)
nfc_device_desc_tarygon_pick_device (void)
bool arygon_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound)

Detailed Description

ARYGON readers driver.

This driver can handle ARYGON readers that use UART as bus. UART connection can be direct (host<->arygon_uc) or could be provided by internal USB to serial interface (e.g. host<->ftdi_chip<->arygon_uc)

Definition in file arygon.c.


Function Documentation

bool arygon_check_communication ( const nfc_device_spec_t  nds  ) 

To be sure that PN532 is alive, we have put a "Diagnose" command to execute a "Communication Line Test"

Definition at line 297 of file arygon.c.

bool arygon_list_devices ( nfc_device_desc_t  pnddDevices[],
size_t  szDevices,
size_t *  pszDeviceFound 
)

Note:
: Due to UART bus we can't know if its really a pn532 without sending some PN53x commands. But using this way to probe devices, we can have serious problem with other device on this bus

Definition at line 104 of file arygon.c.

nfc_device_desc_t* arygon_pick_device ( void   ) 
Note:
ARYGON-ADRA (PN531): ???,n,8,1
ARYGON-ADRB (PN532): 9600,n,8,1
ARYGON-APDA (PN531): 9600,n,8,1
ARYGON-APDB1UA33N (PN532): 115200,n,8,1
ARYGON-APDB2UA33 (PN532 + ARYGON µC): 9600,n,8,1

Definition at line 82 of file arygon.c.