mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-10-06 02:21:39 +03:00
ac349b0bc0
- tools/include/atspi.h, tools/lib/Makefile, tools/lib/atspi.c: library with ATSPI access functions - tools/atspi-id/Makefile: use libatspi - tools/atspi-id/atspi-id.c (main) use atspi_open instead of open_usb - fw/atspi/at86rf230.h: moved to fw/include/ - fw/include/at86rf230.h: added ID registers - fw/atspi/ep0.c: removed stray #endif
37 lines
1016 B
C
37 lines
1016 B
C
/*
|
|
* atspi/at86rf230.h - AT86RF230 protocol and register definitions
|
|
*
|
|
* Written 2008-2010 by Werner Almesberger
|
|
* Copyright 2008-2010 Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef AT86RF230_H
|
|
#define AT86RF230_H
|
|
|
|
enum at86rf230_spi_cmd {
|
|
AT86RF230_REG_WRITE = 0xc0, /* 11... */
|
|
AT86RF230_REG_READ = 0x80, /* 10... */
|
|
AT86RF230_BUF_WRITE = 0x60, /* 011... */
|
|
AT86RF230_BUF_READ = 0x20, /* 001... */
|
|
AT86RF230_SRAM_WRITE = 0x40, /* 010... */
|
|
AT86RF230_SRAM_READ = 0x00 /* 000... */
|
|
};
|
|
|
|
#define MAX_PSDU 127 /* octets, see AT86RF230 manual section 8.1 */
|
|
#define SRAM_SIZE 128
|
|
|
|
enum at86rf230_regs {
|
|
AT86RF230_REG_PART_NUM = 0x1c,
|
|
AT86RF230_REG_VERSION_NUM = 0x1d,
|
|
AT86RF230_REG_MAN_ID_0 = 0x1e,
|
|
AT86RF230_REG_MAN_ID_1 = 0x1f,
|
|
};
|
|
|
|
#endif /* !AT86RF230_H */
|