amiro-lld / drivers / PN532 / v1 / alld_PN532.h @ 86e60b45
History | View | Annotate | Download (3.138 KB)
| 1 |
/*
|
|---|---|
| 2 |
AMiRo-LLD is a compilation of low-level hardware drivers for the Autonomous Mini Robot (AMiRo) platform.
|
| 3 |
Copyright (C) 2016..2019 Thomas Schöpping et al.
|
| 4 |
|
| 5 |
This program is free software: you can redistribute it and/or modify
|
| 6 |
it under the terms of the GNU Lesser General Public License as published by
|
| 7 |
the Free Software Foundation, either version 3 of the License, or
|
| 8 |
(at your option) any later version.
|
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful,
|
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
GNU Lesser General Public License for more details.
|
| 14 |
|
| 15 |
You should have received a copy of the GNU Lesser General Public License
|
| 16 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| 17 |
*/
|
| 18 |
|
| 19 |
/**
|
| 20 |
* @file alld_PN532.h
|
| 21 |
* @brief NFC
|
| 22 |
*
|
| 23 |
* @addtogroup
|
| 24 |
* @{
|
| 25 |
*/
|
| 26 |
|
| 27 |
#ifndef AMIROLLD_PN532_H
|
| 28 |
#define AMIROLLD_PN532_H
|
| 29 |
|
| 30 |
#include <amiro-lld.h> |
| 31 |
|
| 32 |
/******************************************************************************/
|
| 33 |
/* CONSTANTS */
|
| 34 |
/******************************************************************************/
|
| 35 |
|
| 36 |
/**
|
| 37 |
* @brief Maximum I2C frequency.
|
| 38 |
*/
|
| 39 |
//#define P9221R_LLD_I2C_MAXFREQUENCY 400000
|
| 40 |
|
| 41 |
/******************************************************************************/
|
| 42 |
/* SETTINGS */
|
| 43 |
/******************************************************************************/
|
| 44 |
|
| 45 |
/******************************************************************************/
|
| 46 |
/* CHECKS */
|
| 47 |
/******************************************************************************/
|
| 48 |
|
| 49 |
/******************************************************************************/
|
| 50 |
/* DATA STRUCTURES AND TYPES */
|
| 51 |
/******************************************************************************/
|
| 52 |
|
| 53 |
/**
|
| 54 |
* @brief I2C address masks.
|
| 55 |
*/
|
| 56 |
enum {
|
| 57 |
PETER |
| 58 |
}; |
| 59 |
|
| 60 |
/**
|
| 61 |
* @brief Registers.
|
| 62 |
*/
|
| 63 |
typedef enum { |
| 64 |
HASE |
| 65 |
}PN532_lld_register_t; |
| 66 |
|
| 67 |
|
| 68 |
typedef struct { |
| 69 |
int hase;
|
| 70 |
} PN532Driver; |
| 71 |
|
| 72 |
|
| 73 |
/******************************************************************************/
|
| 74 |
/* MACROS */
|
| 75 |
/******************************************************************************/
|
| 76 |
|
| 77 |
/******************************************************************************/
|
| 78 |
/* EXTERN DECLARATIONS */
|
| 79 |
/******************************************************************************/
|
| 80 |
|
| 81 |
#ifdef __cplusplus
|
| 82 |
extern "C" { |
| 83 |
#endif
|
| 84 |
//apalExitStatus_t p9221r_lld_read_register(const P9221RDriver* const p9221r, const p9221r_lld_register_t addr, uint8_t* const data, const uint8_t num, const apalTime_t timeout);
|
| 85 |
#ifdef __cplusplus
|
| 86 |
} |
| 87 |
#endif
|
| 88 |
|
| 89 |
/******************************************************************************/
|
| 90 |
/* INLINE FUNCTIONS */
|
| 91 |
/******************************************************************************/
|
| 92 |
|
| 93 |
#endif /* AMIROLLD_PN532_H */ |
| 94 |
|
| 95 |
/** @} */
|
| 96 |
|