Go to the documentation of this file.
42 #define SIGFOX_PAC_LENGTH (16U)
43 #define SIGFOX_ID_LENGTH (8U)
44 #define SIGFOX_MAX_TX_LENGTH (12U)
45 #define SIGFOX_RX_LENGTH (8U)
225 uint8_t payload_len, uint8_t *rx_payload);
ata8520e_status_type_t
device module status
@ ATA8520E_ATMEL_SEND_ERROR
Send error.
gpio_t power_pin
Power pin.
@ ATA8520E_ERR_EVENT_TIMEOUT
An expected event never happened.
@ ATA8520E_ATMEL_USAGE_ERROR
Usage error.
void ata8520e_read_atmel_version(const ata8520e_t *dev, uint8_t *version)
Return the Atmel version of the device.
@ ATA8520E_STATE_RX
Device is in RX mode, just after TX.
@ ATA8520E_ATMEL_CLOSING_ERROR
Closing error.
mutex_t event_lock
mutex for waiting for event
@ ATA8520E_SIGFOX_MANUFACTURER_SEND_ERROR
Manufacturer send error.
Initialization parameters.
@ ATA8520E_SIGFOX_ID_OR_KEY_ERROR
ID or key error.
Low-level SPI peripheral driver interface definition.
@ ATA8520E_STATE_TX
Device is in TX mode.
@ ATA8520E_OK
Everything is fine.
uint8_t internal_state
current state of the device
@ ATA8520E_SIGFOX_FRAME_SIZE_ERROR
Frame size error.
@ ATA8520E_ERR_GPIO_INT
An error occurred with interrupt pin.
int ata8520e_send_frame(ata8520e_t *dev, uint8_t *payload, uint8_t payload_len)
Send a frame.
@ ATA8520E_SIGFOX_GET_FREQUENCY_ERROR
Error getting frequency.
@ ATA8520E_SIGFOX_API_ERROR
API error indication.
@ ATA8520E_SIGFOX
Sigfox status.
@ ATA8520E_STATE_INIT
Device is in initialization phase.
gpio_t reset_pin
Reset pin.
gpio_t cs_pin
Chip select pin.
int ata8520e_init(ata8520e_t *dev, const ata8520e_params_t *params)
Initialize the device.
@ ATA8520E_SIGFOX_CLOSE_ERROR
Close issues encountered.
ata8520e_params_t params
Device parameters.
@ ATA8520E_ATMEL_GENERIC_ERROR
Generic error.
@ ATA8520E_SIGFOX_FREQUENCY_ERROR
Frequency error.
spi_clk_t
Available SPI clock speeds.
@ ATA8520E_SIGFOX_MANUFACTURER_ERROR
Manufacturer error.
@ ATA8520E_ATMEL_COMMAND_ERROR
Command error / not supported.
@ ATA8520E_SIGFOX_DELAY_ROUTINE_ERROR
Error in delay routine.
void ata8520e_read_id(const ata8520e_t *dev, char *id)
Return the ID of the device.
@ ATA8520E_ATMEL_OK
No error.
spi_clk_t spi_clk
SPI clock speed.
@ ATA8520E_SIGFOX_CALLBACK_ERROR
Callback causes error.
void ata8520e_read_pac(const ata8520e_t *dev, char *pac)
Return the porting authorization code (PAC) available in the device.
@ ATA8520E_SIGFOX_STATE_MACHINE_ERROR
State machine error.
@ ATA8520E_SIGFOX_GET_VOLTAGE_TEMP_ERROR
Get voltage/temperature error.
void ata8520e_read_sigfox_version(const ata8520e_t *dev, char *version)
Return the Atmel version of the device.
ata8520e_atmel_status_t
Sigfox statuses.
@ ATA8520E_SIGFOX_OK
No error.
int ata8520e_send_bit(ata8520e_t *dev, bool bit)
Send a bit.
@ ATA8520E_ATMEL
Atmel status.
Low-level GPIO peripheral driver interface definitions.
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.
@ ATA8520E_ERR_GPIO_RESET
An error occurred with reset pin.
uint8_t event_received
check if an event was received
@ ATA8520E_SIGFOX_BUILDING_FRAME_ERROR
Error building frame.
@ ATA8520E_SIGFOX_TIMING_ERROR
Timing error.
@ ATA8520E_ATMEL_OPENING_ERROR
Opening error.
@ ATA8520E_SIGFOX_GET_PN9_ERROR
Error getting PN9.
@ ATA8520E_ATMEL_FREQUENCY_ERROR
Frequency error.
@ ATA8520E_SSM
SoC System Management status.
@ ATA8520E_ERR_GPIO_POWER
An error occurred with power pin.
@ ATA8520E_STATE_IDLE
Device is in idle state.
Adds include for missing inttype definitions.
void ata8520e_system_reset(const ata8520e_t *dev)
Perform a complete reset of the device.
@ ATA8520E_ERR_SPI
An error occurred with SPI.
xtimer interface definitions
unsigned int spi_t
Default type for SPI devices.
ata8520e_sigfox_status_t
Sigfox statuses.