Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CircularBuffer FixedLengthList
Dependents: XBeeApiTest XBeeApiSimpleATCmdsExample XBeeApiBroadcastExample XBeeApiBroadcastExampleRTOS ... more
RXTX/XBeeApiRxFrame.cpp
- Committer:
- johnb
- Date:
- 2014-02-05
- Revision:
- 23:0e92813b5a50
- Parent:
- 22:2e5aff1149a2
- Child:
- 27:6356ef5fe39b
File content as of revision 23:0e92813b5a50:
/**
Copyright 2014 John Bailey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "XBeeApiRxFrame.hpp"
XBeeApiRxFrame::XBeeApiRxFrame( XBeeDevice* p_device ) : XBeeApiFrame(), XBeeApiFrameDecoder( p_device )
{
}
XBeeApiRxFrame::~XBeeApiRxFrame( void )
{
}
bool XBeeApiRxFrame::decodeCallback( const uint8_t* const p_data, size_t p_len )
{
bool ret_val = false;
if(( XBEE_CMD_RX_64B_ADDR == p_data[ XBEE_CMD_POSN_API_ID ] ) ||
( XBEE_CMD_RX_16B_ADDR == p_data[ XBEE_CMD_POSN_API_ID ] ))
{
extern Serial pc;
pc.printf("WOOT\r\n");
/* TODO */
}
return ret_val;
}