![]() |
Morse Micro IoT SDK
2.9.7
|
RF test application, alpha release.
This application is not intended for general use and requires additional tools. Please contact Morse support for more information.
Definition in file rf-test.c.
#include <endian.h>#include <string.h>#include "mmbuf.h"#include "mmcrc.h"#include "mmhal.h"#include "mmhal_uart.h"#include "mmosal.h"#include "mmutils.h"#include "mmwlan.h"#include "mm_app_common.h"#include "slip.h"
Go to the source code of this file.
Macros | |
| #define | SEQ_NUM_LEN (4) |
| Length of the sequence number field appended to command/response packets. More... | |
| #define | COMMAND_MAX_LEN (252) |
| Maximum possible length of a command that we may wish to receive. More... | |
| #define | RESPONSE_MAX_LEN (2048) |
| Maximum possible length of a response that we may wish to send. More... | |
| #define | RESPONSE_HDR_LEN (12) |
| Length of a response header (excluding status field). More... | |
Functions | |
| static int | slip_tx_handler (uint8_t c, void *arg) |
| TX callback handler for SLIP. More... | |
| static void | rf_test_handle_command (struct mmbuf *cmd_buf) |
| Callback to handle reception of a command packet from the data-link HAL. More... | |
| static void | uart_rx_handler (const uint8_t *data, size_t length, void *arg) |
| Handler for UART HAL RX callback. More... | |
| void | app_init (void) |
| Main entry point to the application. More... | |
Variables | |
| static uint8_t | slip_rx_buffer [SLIP_RX_BUFFER_SIZE] |
| Buffer for SLIP processing on receive path. More... | |
| static struct slip_rx_state | rx_slip_state |
| State data for SLIP processing on receive path. More... | |
| #define COMMAND_MAX_LEN (252) |
| #define RESPONSE_HDR_LEN (12) |
| #define RESPONSE_MAX_LEN (2048) |
| #define SEQ_NUM_LEN (4) |
| void app_init | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
State data for SLIP processing on receive path.
|
static |