Network functions interface. More...
#include <xdc/std.h>
Include dependency graph for nwk.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | nwk_neighbor |
| Neighbor data. More... | |
Macros | |
| #define | NWK_CFG_PANID "\xFF\xFF" |
| swra175a.pdf - 6.2.4.1 ZCD_NV_PANID | |
| #define | NWK_CFG_CHANLIST "\x00\x00\x01\x00" |
| swra175a.pdf - 6.2.4.2 ZCD_NV_CHANLIST | |
| #define | NWK_CFG_PRECFGKEY "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F" |
| swra175a.pdf - 6.2.4.3 ZCD_NV_PRECFGKEY | |
| #define | NWK_CFG_PRECFGKEYS_ENABLE "\x01" |
| swra175a.pdf - 6.2.4.4 ZCD_NV_PRECFGKEYS_ENABLE | |
| #define | NWK_CFG_SECURITY_MODE "\x00" |
| swra175a.pdf - 6.2.4.5 ZCD_NV_SECURITY_MODE | |
| #define | NWK_CFG_BCAST_RETRIES "\x02" |
| swra175a.pdf - 6.2.4.6 ZCD_NV_BCAST_RETRIES | |
| #define | NWK_CFG_PASSIVE_ACK_TIMEOUT "\x05" |
| swra175a.pdf - 6.2.4.7 ZCD_NV_PASSIVE_ACK_TIMEOUT | |
| #define | NWK_CFG_BCAST_DELIVERY_TIME "\x1E" |
| swra175a.pdf - 6.2.4.8 ZCD_NV_BCAST_DELIVERY_TIME | |
| #define | NWK_CFG_ROUTE_EXPIRY_TIME "\x3C" |
| swra175a.pdf - 6.2.4.9 ZCD_NV_ROUTE_EXPIRY_TIME | |
| #define | NWK_CFG_APPENDPOINT 1 |
| The endpoint of the device. More... | |
| #define | NWK_CFG_APPPROFILEID 0x0F10 |
| Profile id of application. More... | |
| #define | NWK_CFG_DEVICEID 0x0003 |
| Application specific. More... | |
| #define | NWK_CFG_DEVICEVERSION 1 |
| Application specific. More... | |
| #define | NWK_CFG_INPUTCMDCOUNT 3 |
| Number of input commands. More... | |
| #define | NWK_CFG_INPUTCMDLIST "\x01\x00\x02\x00\x03\x00" |
| Input command list. More... | |
| #define | NWK_CFG_OUTPUTCMDCOUNT 3 |
| Number of output commands. More... | |
| #define | NWK_CFG_OUTPUTCMDLIST "\x01\x00\x02\x00\x03\x00" |
| Output command list. More... | |
| #define | NWK_CMDIDHEARTBEAT 1 |
| Command id for child heartbeat. More... | |
| #define | NWK_CMDIDRPT 2 |
| Command id for report. More... | |
| #define | NWK_CMDIDPTP 3 |
| Command id for PTP messages. More... | |
| #define | NWK_DEFDEST 0xFFFE |
| Default destination. More... | |
| #define | NWK_DEFACK 0 |
| Default ACK request. On transmitted packets, 1 to request ACK, 0 to don't. | |
| #define | NWK_DEFRADIUS 10 |
| Default radius. Default value for maximum hops before a transmitted packet is dropped. | |
| #define | NWK_DEVTYPE_DEFALUT NWK_DEVTYPE_ROUTER |
| The default device type on network initialization. | |
| #define | NWK_NEIGHBORMAX 3 |
| Max number of expected direct neighbors. | |
Typedefs | |
| typedef enum nwk_devType | nwk_devType |
| Device types. | |
| typedef struct nwk_neighbor | nwk_neighbor |
| Neighbor data. More... | |
Enumerations | |
| enum | nwk_devType { NWK_DEVTYPE_COORDINATOR, NWK_DEVTYPE_ROUTER, NWK_DEVTYPE_ENDDEVICE, NWK_DEVTYPE_NONE } |
| Device types. More... | |
Functions | |
| void | nwk_init () |
| Network initialization. More... | |
| UInt16 | nwk_process () |
| Network process. More... | |
| void | nwk_suspend () |
| network suspend More... | |
| UInt8 | nwk_wakeUp () |
| Network wake up. More... | |
| void | nwk_setDeviceType (nwk_devType newType) |
| Set device type. More... | |
| nwk_devType | nwk_getDeviceType () |
| This function gets the device type. More... | |
| void | nwk_resetResume () |
| Resume from CC2480 reset. More... | |
| UInt8 | nwk_configureWrite () |
| Write configuration. More... | |
| void | nwk_configureWriteRsp (UInt8 status) |
| Response to a configuration write. More... | |
| UInt8 | nwk_register () |
| Register application request. More... | |
| void | nwk_registerRsp (UInt8 status) |
| Register application response. More... | |
| UInt8 | nwk_start () |
| Start network request. More... | |
| void | nwk_startRsp () |
| Start network response. More... | |
| void | nwk_startConfirm (UInt8 status) |
| Start network confirmation. More... | |
| UInt8 | nwk_allow_bind (UInt8 timeout) |
| Allow bind request. More... | |
| void | nwk_allow_bindRsp () |
| Allow bind response. More... | |
| void | nwk_allow_bindConfirm (char *pBuf) |
| Allow bind confirmation. More... | |
| UInt8 | nwk_bind_device (UInt8 create, UInt16 commandId, uint64_t destination) |
| Bind device request. More... | |
| void | nwk_bind_deviceRsp () |
| Bind device response. More... | |
| void | nwk_bind_deviceConfirm (char *pBuf) |
| Bind device confirmation. More... | |
| UInt8 | nwk_getDeviceInfo () |
| Get device information request. More... | |
| void | nwk_getDeviceInfoRsp (UInt8 param, void *pValue) |
| Get device information response. More... | |
| UInt8 | nwk_isClient () |
| Is client. More... | |
| UInt8 | nwk_isSink () |
| Is sink. More... | |
| UInt8 | nwk_isBound () |
| Is bound. More... | |
| void | nwk_setSink (UInt8 sink) |
| Set sink. More... | |
| UInt16 | nwk_getShortAddress () |
| Get shotr address. More... | |
| uint64_t | nwk_getIeeeAddress () |
| Get IEEE address. More... | |
| uint64_t * | nwk_getPIeeeAddress () |
| Get pointer to the IEEE address. More... | |
| UInt8 | nwk_setPermitJoin (UInt8 timeout) |
| Permit join request. More... | |
| void | nwk_setPermitJoinRsp () |
| Permit join response. More... | |
| UInt8 | nwk_allowJoin () |
| Allow join. More... | |
| UInt8 | nwk_disallowJoin () |
| Disallow join. More... | |
| UInt8 | nwk_startFrame (UInt16 destination, UInt16 cmdId, UInt8 radius, UInt8 len) |
| Start Frame. More... | |
| UInt8 | nwk_snd (UInt8 size, void *pBuf) |
| Send data. More... | |
| void | nwk_endFrame (UInt8 forwardToSerial) |
| End frame. More... | |
| UInt8 | nwk_sndUInt8 (UInt8 v) |
| Send unsigned 8 bits integer. More... | |
| UInt8 | nwk_sndUInt16 (UInt16 v) |
| Send unsigned 16 bits integer. More... | |
| UInt8 | nwk_sndUInt32 (UInt32 *p) |
| Send unsigned 32 bits integer. More... | |
| UInt8 | nwk_sndUInt48 (uint64_t *p) |
| Send unsigned 48 bits integer. More... | |
| UInt8 | nwk_sndUInt64 (uint64_t *p) |
| Send unsigned 64 bits integer. More... | |
| UInt8 | nwk_sndInt64 (int64_t *p) |
| Send signed 64 bits integer. More... | |
| void | nwk_send_dataConfirm (UInt8 dataHandle, UInt8 status) |
| Send data confirmation. More... | |
| void | nwk_rcv (char *pBuf) |
| Network receive. More... | |
| UInt8 | nwk_getNeighborPort (UInt16 a) |
| Get neighbor port. More... | |
| UInt8 | nwk_getNeighborForeignPort (UInt8 i) |
| Get neighbor foreign port. More... | |
| UInt16 | nwk_getNeighborAddress (UInt8 i) |
| Get neighbor address. More... | |
| UInt8 | nwk_registerNeighbor (UInt16 a) |
| Register neighbor. More... | |
Variables | |
| nwk_neighbor | nwk_neighbors [NWK_NEIGHBORMAX] |
| Neighbors information. | |
Network functions interface.
Definition in file nwk.h.