Revision 15f74f80 drivers/PN532/v1/alld_PN532.h

View differences:

drivers/PN532/v1/alld_PN532.h
20 20
 * @file    alld_PN532.h
21 21
 * @brief   NFC
22 22
 *
23
 * @addtogroup 
23
 * @addtogroup lld_power //TODO
24 24
 * @{
25 25
 */
26 26

  
......
32 32
/******************************************************************************/
33 33
/* CONSTANTS                                                                  */
34 34
/******************************************************************************/
35

  
36 35
/**
37 36
 * @brief Maximum I2C frequency.
38 37
 */
39
//#define P9221R_LLD_I2C_MAXFREQUENCY   400000
38
#define PN532_LLD_I2C_MAXFREQUENCY   400000
40 39

  
41 40
/******************************************************************************/
42 41
/* SETTINGS                                                                   */
......
54 53
 * @brief I2C address masks.
55 54
 */
56 55
enum {
57
  PETER
56
  PN532_LLD_I2C_ADDR_FIXED   = 0x0061u, //TODO
58 57
};
59 58

  
60 59
/**
61 60
 * @brief Registers.
62 61
 */
63 62
typedef enum {
64
  HASE
65
}PN532_lld_register_t;
63
  PN532_LLD_REGISTER 		= 0x0000,  //TODO
64
}pn532_lld_register_t;
66 65

  
67 66

  
68 67
typedef struct {
69
  int hase;
68
  apalI2CDriver_t* i2cd;
69
  apalI2Caddr_t addr;
70
  uint16_t current_lsb_uA;
70 71
} PN532Driver;
71 72

  
72 73

  
......
81 82
#ifdef __cplusplus
82 83
extern "C" {
83 84
#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
  apalExitStatus_t pn532_lld_read_register(const PN532Driver* const pn532, const pn532_lld_register_t addr, uint8_t* const data, const uint8_t num, const apalTime_t timeout);
86
 
85 87
#ifdef __cplusplus
86 88
}
87 89
#endif

Also available in: Unified diff