NanoStack lib for Cortex-M4

Dependents:   mbedEndpointNetwork mbedEndpointNetworkMJK

Fork of Nanostack_lib by Sensinode

Committer:
sscaglia
Date:
Tue Jul 15 02:52:09 2014 +0000
Revision:
14:b486fa9e70a7
Parent:
4:c449bead5cf3
Initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mika Karjalainen 4:c449bead5cf3 1 /*
Mika Karjalainen 4:c449bead5cf3 2 * Copyright ARM Ltd 2014
Mika Karjalainen 4:c449bead5cf3 3 */
Mika Karjalainen 4:c449bead5cf3 4
Mika Karjalainen 4:c449bead5cf3 5 #ifndef TASKLET_API_H_
Mika Karjalainen 4:c449bead5cf3 6 #define TASKLET_API_H_
Mika Karjalainen 4:c449bead5cf3 7 /**
Mika Karjalainen 4:c449bead5cf3 8 * \file tasklet_api.h
Mika Karjalainen 4:c449bead5cf3 9 * \brief Library Tasklet and Network event.
Mika Karjalainen 4:c449bead5cf3 10 *
Mika Karjalainen 4:c449bead5cf3 11 */
Mika Karjalainen 4:c449bead5cf3 12 /**Network status events, these are posted with ID SYS_NETWORK*/
Mika Karjalainen 4:c449bead5cf3 13 /** Connection to access point is ready. */
Mika Karjalainen 4:c449bead5cf3 14 #define NET_READY 0
Mika Karjalainen 4:c449bead5cf3 15 /** No Coordinator available. Note: Stack enter to IDLE automatically. net_stop() is not necessary */
Mika Karjalainen 4:c449bead5cf3 16 #define NET_NO_BEACON 1
Mika Karjalainen 4:c449bead5cf3 17 /** No ND Router available. Note: Stack enter to IDLE automatically. net_stop() is not necessary */
Mika Karjalainen 4:c449bead5cf3 18 #define NET_NO_ND_ROUTER 2
Mika Karjalainen 4:c449bead5cf3 19 /** No PANA server available. Note: Only used ZIP Stack. Stack enter to IDLE automatically */
Mika Karjalainen 4:c449bead5cf3 20 #define NET_NO_PANA_SERVER 3
Mika Karjalainen 4:c449bead5cf3 21 /** PANA authentication has been failed. Note: Only used ZIP Stack. Stack enter to IDLE automatically */
Mika Karjalainen 4:c449bead5cf3 22 #define NET_PANA_SERVER_AUTH_FAIL 4
Mika Karjalainen 4:c449bead5cf3 23 /** Connection to AP lost and scanning has been started automatically. Application should wait response from scanning. NOTE Only used at BLE stack */
Mika Karjalainen 4:c449bead5cf3 24 #define NET_BORDER_ROUTER_LOST 5
Mika Karjalainen 4:c449bead5cf3 25 /** Host has loosing Connection to Parent. Application should start stack again just check if MLE UPDATE was happen. */
Mika Karjalainen 4:c449bead5cf3 26 #define NET_PARENT_POLL_FAIL 6
Mika Karjalainen 4:c449bead5cf3 27 /** ND DAD happen and user not want generate dynamically new. Note: Stack enter to IDLE automatically. net_stop() is not necessar*/
Mika Karjalainen 4:c449bead5cf3 28 #define NET_DAD 7
Mika Karjalainen 4:c449bead5cf3 29 /*!
Mika Karjalainen 4:c449bead5cf3 30 * \enum s_tasklet
Mika Karjalainen 4:c449bead5cf3 31 * \brief Nanostack Library Tasklet.
Mika Karjalainen 4:c449bead5cf3 32 */
Mika Karjalainen 4:c449bead5cf3 33 typedef enum s_tasklet
Mika Karjalainen 4:c449bead5cf3 34 {
Mika Karjalainen 4:c449bead5cf3 35 SYSTEM,
Mika Karjalainen 4:c449bead5cf3 36 SYSTEM_TIMER,
Mika Karjalainen 4:c449bead5cf3 37 SYSTEM_MAC,
Mika Karjalainen 4:c449bead5cf3 38 TL_NETWORK,
Mika Karjalainen 4:c449bead5cf3 39 TL_MAIN,
Mika Karjalainen 4:c449bead5cf3 40 SYS_SOCKET,
Mika Karjalainen 4:c449bead5cf3 41 SYS_NETWORK,
Mika Karjalainen 4:c449bead5cf3 42 APP_SPESIFIC_EVENT,
Mika Karjalainen 4:c449bead5cf3 43 SYS_PIPE,
Mika Karjalainen 4:c449bead5cf3 44 PM_MAC,
Mika Karjalainen 4:c449bead5cf3 45 PM_ICMP,
Mika Karjalainen 4:c449bead5cf3 46 PM_UDP,
Mika Karjalainen 4:c449bead5cf3 47 PM_TCP,
Mika Karjalainen 4:c449bead5cf3 48 PM_MAX
Mika Karjalainen 4:c449bead5cf3 49 }s_tasklet;
Mika Karjalainen 4:c449bead5cf3 50
Mika Karjalainen 4:c449bead5cf3 51 /*!
Mika Karjalainen 4:c449bead5cf3 52 * \enum s_event
Mika Karjalainen 4:c449bead5cf3 53 * \brief Nanostack Library Events.
Mika Karjalainen 4:c449bead5cf3 54 */
Mika Karjalainen 4:c449bead5cf3 55 typedef enum s_event
Mika Karjalainen 4:c449bead5cf3 56 {
Mika Karjalainen 4:c449bead5cf3 57 EV_INIT,
Mika Karjalainen 4:c449bead5cf3 58 EV_UART1,
Mika Karjalainen 4:c449bead5cf3 59 EV_UART0,
Mika Karjalainen 4:c449bead5cf3 60 EV_SPI,
Mika Karjalainen 4:c449bead5cf3 61 EV_SOCKET,
Mika Karjalainen 4:c449bead5cf3 62 EV_CORE_IDLE,
Mika Karjalainen 4:c449bead5cf3 63 EV_READY_TO_SLEEP,
Mika Karjalainen 4:c449bead5cf3 64 EV_TIMER,
Mika Karjalainen 4:c449bead5cf3 65 EV_NETWORK,
Mika Karjalainen 4:c449bead5cf3 66 EV_RF,
Mika Karjalainen 4:c449bead5cf3 67 EV_ECC,
Mika Karjalainen 4:c449bead5cf3 68 EV_MAX
Mika Karjalainen 4:c449bead5cf3 69 }s_event;
Mika Karjalainen 4:c449bead5cf3 70
Mika Karjalainen 4:c449bead5cf3 71
Mika Karjalainen 4:c449bead5cf3 72
Mika Karjalainen 4:c449bead5cf3 73
Mika Karjalainen 4:c449bead5cf3 74 #endif /* TASKLET_API_H_ */