Atmel Software Framework

tester.h File Reference

Tester application interface.

Copyright (C) 2012-2015 Atmel Corporation. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. The name of Atmel may not be used to endorse or promote products derived from this software without specific prior written permission.
  4. This software may only be redistributed and used in connection with an Atmel microcontroller product.

THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macros

#define APP_UART_BUFFER_SIZE   500
 
#define APP_UART_START_SYMBOL   0xA5
 

Typedefs

typedef enum AppStatus_t AppStatus_t
 

Enumerations

enum  AppStatus_t {
  APP_STATUS_SUCESS = 0x00,
  APP_STATUS_INVALID_CRC = 0x01,
  APP_STATUS_UNKNOWN_COMMAND = 0x02,
  APP_STATUS_MALFORMED_COMMAND = 0x03,
  APP_STATUS_TABLE_IS_FULL = 0x04,
  APP_STATUS_ENTRY_NOT_FOUND = 0x05,
  APP_STATUS_OUT_OF_MEMORY = 0x06,
  APP_STATUS_INVALID_PARAMETERS = 0x07
}
 

Functions

AppStatus_t appCommandReceived (uint8_t *buf, uint16_t size)
 

#define APP_UART_BUFFER_SIZE   500
#define APP_UART_START_SYMBOL   0xA5

typedef enum AppStatus_t AppStatus_t

Enumerator
APP_STATUS_SUCESS 
APP_STATUS_INVALID_CRC 
APP_STATUS_UNKNOWN_COMMAND 
APP_STATUS_MALFORMED_COMMAND 
APP_STATUS_TABLE_IS_FULL 
APP_STATUS_ENTRY_NOT_FOUND 
APP_STATUS_OUT_OF_MEMORY 
APP_STATUS_INVALID_PARAMETERS 

AppStatus_t appCommandReceived ( uint8_t *  buf,
uint16_t  size 
)

References AppCommandSetAddr_t::addr, AppCommandFilterAdd_t::addr, AppCommandFilterRemove_t::addr, AppCommandFilterAdd_t::allow, APP_COMMAND_DATA_REQ, APP_COMMAND_DUMMY, APP_COMMAND_FILTER_ADD, APP_COMMAND_FILTER_REMOVE, APP_COMMAND_GET_EVENTS, APP_COMMAND_GROUP_ADD, APP_COMMAND_GROUP_REMOVE, APP_COMMAND_OPEN_ENDPOINT, APP_COMMAND_RANDOMIZE, APP_COMMAND_RESET, APP_COMMAND_ROUTE_ADD, APP_COMMAND_ROUTE_FLUSH, APP_COMMAND_ROUTE_REMOVE, APP_COMMAND_ROUTE_TABLE, APP_COMMAND_SET_ACK_STATE, APP_COMMAND_SET_ADDR, APP_COMMAND_SET_CHANNEL, APP_COMMAND_SET_PANID, APP_COMMAND_SET_RX_STATE, APP_COMMAND_SET_SECURITY_KEY, APP_COMMAND_SET_TX_POWER, APP_STATUS_ENTRY_NOT_FOUND, APP_STATUS_SUCESS, APP_STATUS_TABLE_IS_FULL, APP_STATUS_UNKNOWN_COMMAND, appCommandsSendRouteEntry(), appEndpointAckState, appFilterAdd(), appFilterRemove(), appOpenEndpoint(), appProcessDataReq(), AppCommandSetChannel_t::band, AppCommandSetChannel_t::channel, AppReceiveCommand_t::dataReq, AppCommandRouteAdd_t::dstAddr, AppCommandRouteRemove_t::dstAddr, AppReceiveCommand_t::filterAdd, AppReceiveCommand_t::filterRemove, AppCommandRouteAdd_t::fixed, AppCommandGroupAdd_t::group, AppCommandGroupRemove_t::group, AppReceiveCommand_t::groupAdd, AppReceiveCommand_t::groupRemove, AppReceiveCommand_t::header, AppCommandHeader_t::id, AppCommandOpenEndpoint_t::index, AppCommandSetAckState_t::index, AppCommandRouteAdd_t::lqi, AppCommandFilterAdd_t::lqi, AppCommandSetChannel_t::modulation, AppCommandRouteAdd_t::multicast, AppCommandRouteRemove_t::multicast, AppCommandRouteAdd_t::nextHopAddr, NWK_ROUTE_TABLE_SIZE, NWK_ROUTE_UNKNOWN, NWK_SetAddr(), NWK_SetPanId(), AppReceiveCommand_t::openEndpoint, AppCommandSetPanId_t::panId, PHY_SetBand(), PHY_SetChannel(), PHY_SetModulation(), PHY_SetRxState(), PHY_SetTxPower(), AppReceiveCommand_t::randomize, AppCommandRouteRemove_t::removeFixed, AppCommandRouteFlush_t::removeFixed, AppCommandRandomize_t::rnd, AppReceiveCommand_t::routeAdd, AppReceiveCommand_t::routeFlush, AppReceiveCommand_t::routeRemove, AppCommandSetRxState_t::rxState, AppCommandSetSecurityKey_t::securityKey, AppReceiveCommand_t::setAckState, AppReceiveCommand_t::setAddr, AppReceiveCommand_t::setChannel, AppCommandFilterAdd_t::setLqi, AppReceiveCommand_t::setPanId, AppReceiveCommand_t::setRxState, AppReceiveCommand_t::setSecurityKey, AppReceiveCommand_t::setTxPower, AppCommandOpenEndpoint_t::state, AppCommandSetAckState_t::state, and AppCommandSetTxPower_t::txPower.

Referenced by appUartStateMachine().