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.
Fork of RF22 by
Diff: RF22Mesh.h
- Revision:
- 5:0386600f3408
- Parent:
- 0:79c6d0071c4c
--- a/RF22Mesh.h Sun Feb 19 21:12:10 2012 +0000 +++ b/RF22Mesh.h Sat Mar 02 20:49:07 2013 +0000 @@ -2,7 +2,7 @@ // // Author: Mike McCauley (mikem@open.com.au) // Copyright (C) 2011 Mike McCauley -// $Id: RF22Mesh.h,v 1.3 2011/02/15 04:51:59 mikem Exp $ +// $Id: RF22Mesh.h,v 1.4 2012/05/30 01:51:25 mikem Exp $ // ported to mbed by Karl Zweimueller #ifndef RF22Mesh_h @@ -120,7 +120,7 @@ typedef struct { MeshMessageHeader header; ///< msgType = RF22_MESH_MESSAGE_TYPE_ROUTE_DISCOVERY_* - uint8_t destlen; ///< Reserved. Must be 1. + uint8_t destlen; ///< Reserved. Must be 1.g uint8_t dest; ///< The address of the destination node whose route is being sought uint8_t route[RF22_MESH_MAX_MESSAGE_LEN - 1]; ///< List of node addresses visited so far. Length is implcit } MeshRouteDiscoveryMessage; @@ -135,9 +135,9 @@ /// Constructor. /// \param[in] thisAddress The address to assign to this node. Defaults to 0 /// \param[in] slaveSelectPin the Arduino pin number of the output to use to select the RF22 before - /// accessing it + /// accessing it. Defaults to the normal SS pin for your Arduino (D10 for Diecimila, Uno etc, D53 for Mega) /// \param[in] interrupt The interrupt number to use. Default is interrupt 0 (Arduino input pin 2) - RF22Mesh(uint8_t thisAddress ,PinName slaveSelectPin , PinName mosi, PinName miso, PinName sclk, PinName interrupt ); + RF22Mesh(uint8_t thisAddress , PinName slaveSelectPin , PinName mosi, PinName miso, PinName sclk, PinName interrupt ); /// Sends a message to the destination node. Initialises the RF22Router message header /// (the SOURCE address is set to the address of this node, HOPS to 0) and calls @@ -235,4 +235,3 @@ }; #endif -