Microchip® Advanced Software Framework

phy_embedded_app.c File Reference

ATMEL PLC PHY TX Test Console Application.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdio.h>
#include "string.h"
#include "asf.h"
#include "conf_pplc_if.h"
#include "conf_example.h"
#include "phy_embedded_app.h"
#include "atpl230.h"
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"

Macros

#define APP_CHECK_RESET_PERIOD   5
 
#define APP_CHECK_RESET_VALUE   0xA500005A
 

Functions

static void _reset_plc_modem (void)
 Reset internal PLC Modem. More...
 
static void prvAppPhyTask (void *pvParameters)
 
static void prvGetRxTask (void *pvparameters)
 
static void prvGetTxResultTask (void *pvParameters)
 
void vPhyEmbeddedAppTask (txPhyEmbeddedConfig_t *xAppPhyCfgTx)
 

Variables

static uint8_t sna [6] = {0x00, 0x80, 0xE1, 0x00, 0x00, 0x6F}
 
static uint8_t uc_data_buf [800]
 
xTaskHandle xappConsoleHand
 
xTaskHandle xappPhyHand
 
xTaskHandle xappRxHand
 
xTaskHandle xappTxResHand
 
static txPhyEmbeddedConfig_t xTxPhyCfg
 

#define APP_CHECK_RESET_PERIOD   5
#define APP_CHECK_RESET_VALUE   0xA500005A

Referenced by prvAppPhyTask().

static void _reset_plc_modem ( void  )
static

Reset internal PLC Modem.

References gpio_set_pin_high, gpio_set_pin_low, and ioport_set_pin_level().

Referenced by prvAppPhyTask().

uint8_t sna[6] = {0x00, 0x80, 0xE1, 0x00, 0x00, 0x6F}
static
uint8_t uc_data_buf[800]
static
xTaskHandle xappConsoleHand
xTaskHandle xappPhyHand

Referenced by vPhyEmbeddedAppTask().

xTaskHandle xappRxHand

Referenced by vPhyEmbeddedAppTask().

xTaskHandle xappTxResHand

Referenced by vPhyEmbeddedAppTask().

txPhyEmbeddedConfig_t xTxPhyCfg
static