Device driver for Microchip ATA8520E transceiver (Sigfox) More...
Device driver for Microchip ATA8520E transceiver (Sigfox)
Definition in file ata8520e.h.
#include <stdint.h>#include <inttypes.h>#include "mutex.h"#include "periph/gpio.h"#include "periph/spi.h"
Include dependency graph for ata8520e.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ata8520e_params_t |
| Initialization parameters. More... | |
| struct | ata8520e_t |
| device descriptor More... | |
Functions | |
| int | ata8520e_init (ata8520e_t *dev, const ata8520e_params_t *params) |
| Initialize the device. More... | |
| void | ata8520e_system_reset (const ata8520e_t *dev) |
| Perform a complete reset of the device. More... | |
| void | ata8520e_read_atmel_version (const ata8520e_t *dev, uint8_t *version) |
| Return the Atmel version of the device. More... | |
| void | ata8520e_read_sigfox_version (const ata8520e_t *dev, char *version) |
| Return the Atmel version of the device. More... | |
| void | ata8520e_read_pac (const ata8520e_t *dev, char *pac) |
| Return the porting authorization code (PAC) available in the device. More... | |
| void | ata8520e_read_id (const ata8520e_t *dev, char *id) |
| Return the ID of the device. More... | |
| int | ata8520e_send_frame (ata8520e_t *dev, uint8_t *payload, uint8_t payload_len) |
| Send a frame. More... | |
| int | ata8520e_send_receive_frame (ata8520e_t *dev, uint8_t *payload, uint8_t payload_len, uint8_t *rx_payload) |
| Send a frame and wait for a RX packet. More... | |
| int | ata8520e_send_bit (ata8520e_t *dev, bool bit) |
| Send a bit. More... | |
SIGFOX constants | |
| #define | SIGFOX_PAC_LENGTH (16U) |
| Length of Sigfox PAC. | |
| #define | SIGFOX_ID_LENGTH (8U) |
| Length of Sigfox ID. | |
| #define | SIGFOX_MAX_TX_LENGTH (12U) |
| Maximum length of a TX payload. | |
| #define | SIGFOX_RX_LENGTH (8U) |
| RX payload length is always 8. | |