AT86RFx Wireless Module Unit Test.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <inttypes.h>
#include <stdio.h>
#include <asf.h>
#include "app_config.h"
#include "conf_board.h"
#include "pal.h"
#include "led.h"
#include "delay.h"
#include "tal.h"
#include "vendor_data.h"
#include "pb_pairing.h"
#include "rf4ce.h"
#include "common_sw_timer.h"
Functions | |
FLASH_DECLARE (uint16_t VendorIdentifier) | |
FLASH_DECLARE (uint8_t vendor_string[7]) | |
FLASH_DECLARE (uint8_t app_user_string[15]) | |
int | main (void) |
Run Wireless Module unit tests. More... | |
void | main_cdc_set_dtr (bool b_enable) |
Call back from USB to notify a terminal connection to the CDC driver. More... | |
static void | nlme_reset_confirm (nwk_enum_t Status) |
static void | nlme_start_confirm (nwk_enum_t Status) |
static void | run_nlme_reset_test (const struct test_case *test) |
static void | run_nlme_start_test (const struct test_case *test) |
static void | run_zid_rec_connect_test (const struct test_case *test) |
static void | zid_connect_confirm (nwk_enum_t Status, uint8_t PairingRef) |
Variables | |
static uint8_t | nlme_reset_conf_rcvd = false |
static uint8_t | nlme_reset_conf_status = FAILURE |
static uint8_t | nlme_start_conf_rcvd = false |
static uint8_t | nlme_start_conf_status = FAILURE |
static uint8_t | zid_connect_conf_rcvd = false |
static uint8_t | zid_connect_conf_status = FAILURE |
FLASH_DECLARE | ( | uint16_t | VendorIdentifier | ) |
FLASH_DECLARE | ( | uint8_t | vendor_string[7] | ) |
FLASH_DECLARE | ( | uint8_t | app_user_string[15] | ) |
int main | ( | void | ) |
Run Wireless Module unit tests.
Initializes the clock system, board and USB. Then runs the wireless task continuously.
References board_init(), cpu_irq_enable, irq_initialize_vectors, nwk_init(), nwk_task(), stdio_usb_init(), sw_timer_init(), and sysclk_init().
void main_cdc_set_dtr | ( | bool | b_enable | ) |
Call back from USB to notify a terminal connection to the CDC driver.
b_enable | indication for connect/disconnect of terminal to CDC. |
References DEFINE_TEST_ARRAY, DEFINE_TEST_CASE, DEFINE_TEST_SUITE, run_nlme_reset_test(), run_nlme_start_test(), run_zid_rec_connect_test(), and test_suite_run().
|
static |
References nlme_reset_conf_rcvd, and nlme_reset_conf_status.
Referenced by run_nlme_reset_test().
|
static |
References nlme_start_conf_rcvd, and nlme_start_conf_status.
Referenced by run_nlme_start_test().
|
static |
References FUNC_PTR, nlme_reset_conf_rcvd, nlme_reset_conf_status, nlme_reset_confirm(), nlme_reset_request(), NWK_SUCCESS, nwk_task(), and test_assert_true.
Referenced by main_cdc_set_dtr().
|
static |
References FUNC_PTR, nlme_start_conf_rcvd, nlme_start_conf_status, nlme_start_confirm(), nlme_start_request(), NWK_SUCCESS, nwk_task(), and test_assert_true.
Referenced by main_cdc_set_dtr().
|
static |
References APP_CAPABILITIES, DEVICE_TYPE_LIST_SIZE, FUNC_PTR, NWK_DISCOVERY_TIMEOUT, nwk_task(), PROFILE_ID_LIST_SIZE, SUPPORTED_DEV_TYPE_0, SUPPORTED_PROFILE_ID_0, test_assert_true, zid_connect_conf_rcvd, zid_connect_conf_status, zid_connect_confirm(), and zid_rec_connect_request().
Referenced by main_cdc_set_dtr().
|
static |
References zid_connect_conf_rcvd, and zid_connect_conf_status.
Referenced by run_zid_rec_connect_test().
|
static |
Referenced by nlme_reset_confirm(), and run_nlme_reset_test().
|
static |
Referenced by nlme_reset_confirm(), and run_nlme_reset_test().
|
static |
Referenced by nlme_start_confirm(), and run_nlme_start_test().
|
static |
Referenced by nlme_start_confirm(), and run_nlme_start_test().
|
static |
Referenced by run_zid_rec_connect_test(), and zid_connect_confirm().
|
static |
Referenced by run_zid_rec_connect_test(), and zid_connect_confirm().