Data Structures

struct  EmberNetworkParameters
 Holds network parameters. More...
 
struct  EmberIncomingMessage
 An instance of this structure is passed to emberIncomingMessageHandler(). It describes the incoming message. More...
 
struct  EmberOutgoingMessage
 An instance of this structure is passed to emberMessageSentHandler(). It describes the outgoing packet. More...
 
struct  EmberMacAddress
 A structure that stores an 802.15.4 address. More...
 
struct  EmberMacFrame
 A structure that describes the addressing fields of a 802.15.4 frame. More...
 
struct  EmberIncomingMacMessage
 An instance of this structure is passed to emberIncomingMacMessageHandler(). It describes the incoming MAC frame. More...
 
struct  EmberOutgoingMacMessage
 An instance of this structure is passed to emberMacMessageSentHandler(). It describes the outgoing MAC frame. More...
 
struct  EmberKeyData
 This data structure contains the key data that is passed into various other functions. More...
 
struct  EventActions
 The static part of an event. Each event can be used with only one event queue. More...
 
struct  Event_s
 
struct  EventQueue_s
 An event queue is currently just a list of events ordered by execution time. More...
 
struct  EmberEventControl
 Control structure for events. More...
 
struct  EmberEventData_S
 Complete events with a control and a handler procedure. More...
 
struct  EmberTaskControl
 Control structure for tasks. More...
 

Macros

#define EXTENDED_PAN_ID_SIZE
 Size of an extended PAN identifier in bytes (8). More...
 
#define EUI64_SIZE
 Size of EUI64 (an IEEE address) in bytes (8). More...
 
#define EMBER_ENCRYPTION_KEY_SIZE
 Size of an encryption key in bytes (16). More...
 
#define EMBER_NULL_NODE_ID
 A distinguished network ID that will never be assigned to any node. Used to indicate the absence of a node ID. More...
 
#define EMBER_BROADCAST_ADDRESS
 
#define EMBER_COORDINATOR_ADDRESS
 
#define __EMBERSTATUS_TYPE__
 Return type for Ember functions. More...
 

Typedefs

typedef uint8_t EmberEUI64[EUI64_SIZE]
 EUI 64-bit ID (an IEEE address). More...
 
typedef uint16_t EmberNodeId
 802.15.4 node ID. More...
 
typedef uint16_t EmberPanId
 802.15.4 PAN ID. More...
 
typedef uint8_t EmberMessageLength
 Message length in bytes. More...
 
typedef uint8_t EmberTaskId
 
typedef struct Event_s Event
 
typedef struct EventQueue_s EventQueue
 An event queue is currently just a list of events ordered by execution time. More...
 
typedef PGM struct EmberEventData_S EmberEventData
 
typedef uint16_t EmberBuffer
 Buffers used by the memory buffer system. More...
 
typedef uint8_t EmberStatus
 

Enumerations

enum  EmberNodeType {
  EMBER_UNKNOWN_DEVICE,
  EMBER_STAR_COORDINATOR,
  EMBER_STAR_RANGE_EXTENDER,
  EMBER_STAR_END_DEVICE,
  EMBER_STAR_SLEEPY_END_DEVICE,
  EMBER_DIRECT_DEVICE,
  EMBER_MAC_MODE_DEVICE,
  EMBER_MAC_MODE_SLEEPY_DEVICE
}
 Defines the possible types of nodes and the roles that a node might play in a network. More...
 
enum  EmberNetworkStatus {
  EMBER_NO_NETWORK,
  EMBER_JOINING_NETWORK,
  EMBER_JOINED_NETWORK
}
 Defines the possible join states for a node. More...
 
enum  EmberMessageOptions {
  EMBER_OPTIONS_NONE,
  EMBER_OPTIONS_SECURITY_ENABLED,
  EMBER_OPTIONS_ACK_REQUESTED,
  EMBER_OPTIONS_HIGH_PRIORITY,
  EMBER_OPTIONS_INDIRECT
}
 Message options. More...
 
enum  EmberMacAddressMode {
  EMBER_MAC_ADDRESS_MODE_NONE,
  EMBER_MAC_ADDRESS_MODE_SHORT,
  EMBER_MAC_ADDRESS_MODE_LONG
}
 802.15.4 addressing mode. More...
 
enum  EmberEventUnits {
  EMBER_EVENT_INACTIVE,
  EMBER_EVENT_MS_TIME,
  EMBER_EVENT_QS_TIME,
  EMBER_EVENT_MINUTE_TIME,
  EMBER_EVENT_ZERO_DELAY
}
 Either marks an event as inactive or specifies the units for the event execution time. More...
 
enum  {
  EMBER_OUTGOING_MESSAGES,
  EMBER_INCOMING_MESSAGES,
  EMBER_RADIO_IS_ON,
  EMBER_ASSOCIATING,
  EMBER_SCANNING
}
 Defines tasks that prevent the stack from sleeping. More...
 
enum  EmberCounterType {
  EMBER_COUNTER_PHY_IN_PACKETS,
  EMBER_COUNTER_PHY_OUT_PACKETS,
  EMBER_COUNTER_MAC_IN_UNICAST,
  EMBER_COUNTER_MAC_IN_BROADCAST,
  EMBER_COUNTER_MAC_OUT_UNICAST_NO_ACK,
  EMBER_COUNTER_MAC_OUT_UNICAST_ACK_SUCCESS,
  EMBER_COUNTER_MAC_OUT_UNICAST_ACK_FAIL,
  EMBER_COUNTER_MAC_OUT_UNICAST_CCA_FAIL,
  EMBER_COUNTER_MAC_OUT_UNICAST_RETRY,
  EMBER_COUNTER_MAC_OUT_BROADCAST,
  EMBER_COUNTER_MAC_OUT_BROADCAST_CCA_FAIL,
  EMBER_COUNTER_MAC_DROP_IN_MEMORY,
  EMBER_COUNTER_MAC_DROP_IN_FRAME_COUNTER,
  EMBER_COUNTER_MAC_DROP_IN_DECRYPT,
  EMBER_COUNTER_NWK_OUT_FORWARDING,
  EMBER_COUNTER_NWK_IN_SUCCESS,
  EMBER_COUNTER_NWK_DROP_IN_WRONG_SOURCE,
  EMBER_COUNTER_NWK_DROP_IN_FORWARDING,
  EMBER_COUNTER_UART_IN_DATA,
  EMBER_COUNTER_UART_IN_MANAGEMENT,
  EMBER_COUNTER_UART_IN_FAIL,
  EMBER_COUNTER_UART_OUT_DATA,
  EMBER_COUNTER_UART_OUT_MANAGEMENT,
  EMBER_COUNTER_UART_OUT_FAIL,
  EMBER_COUNTER_ROUTE_2_HOP_LOOP,
  EMBER_COUNTER_BUFFER_ALLOCATION_FAIL,
  EMBER_ASH_V3_ACK_SENT,
  EMBER_ASH_V3_ACK_RECEIVED,
  EMBER_ASH_V3_NACK_SENT,
  EMBER_ASH_V3_NACK_RECEIVED,
  EMBER_ASH_V3_RESEND,
  EMBER_ASH_V3_BYTES_SENT,
  EMBER_ASH_V3_TOTAL_BYTES_RECEIVED,
  EMBER_ASH_V3_VALID_BYTES_RECEIVED,
  EMBER_ASH_V3_PAYLOAD_BYTES_SENT,
  EMBER_COUNTER_TYPE_COUNT
}
 Defines the events reported to the application by the ::emberCounterHandler(). More...
 

Functions

uint8_t * emberKeyContents (EmberKeyData *key)
 This function allows the programmer to gain access to the key data bytes of the EmberKeyData structure. More...
 

Detailed Description

See ember-types.h for source code.

Macro Definition Documentation

#define __EMBERSTATUS_TYPE__

Return type for Ember functions.

Definition at line 627 of file ember-types.h.

#define EMBER_BROADCAST_ADDRESS

Broadcast address.

Definition at line 61 of file ember-types.h.

#define EMBER_COORDINATOR_ADDRESS

The coordinator short address.

Definition at line 64 of file ember-types.h.

#define EMBER_ENCRYPTION_KEY_SIZE

Size of an encryption key in bytes (16).

Definition at line 37 of file ember-types.h.

#define EMBER_NULL_NODE_ID

A distinguished network ID that will never be assigned to any node. Used to indicate the absence of a node ID.

Definition at line 58 of file ember-types.h.

#define EUI64_SIZE

Size of EUI64 (an IEEE address) in bytes (8).

Definition at line 32 of file ember-types.h.

#define EXTENDED_PAN_ID_SIZE

Size of an extended PAN identifier in bytes (8).

Definition at line 27 of file ember-types.h.

Typedef Documentation

typedef uint16_t EmberBuffer

Buffers used by the memory buffer system.

Definition at line 621 of file ember-types.h.

typedef uint8_t EmberEUI64[EUI64_SIZE]

EUI 64-bit ID (an IEEE address).

Definition at line 42 of file ember-types.h.

typedef PGM struct EmberEventData_S EmberEventData
typedef uint8_t EmberMessageLength

Message length in bytes.

Definition at line 150 of file ember-types.h.

typedef uint16_t EmberNodeId

802.15.4 node ID.

Definition at line 47 of file ember-types.h.

typedef uint16_t EmberPanId

802.15.4 PAN ID.

Definition at line 52 of file ember-types.h.

typedef uint8_t EmberStatus

Definition at line 628 of file ember-types.h.

typedef uint8_t EmberTaskId

brief An identifier for a task

Definition at line 423 of file ember-types.h.

typedef struct Event_s Event
typedef struct EventQueue_s EventQueue

An event queue is currently just a list of events ordered by execution time.

Enumeration Type Documentation

anonymous enum

Defines tasks that prevent the stack from sleeping.

Enumerator
EMBER_OUTGOING_MESSAGES 

Messages are waiting for transmission.

EMBER_INCOMING_MESSAGES 

One or more incoming messages are processed.

EMBER_RADIO_IS_ON 

The radio is currently powered on. On sleepy devices, the radio is turned off when not in use. On non-sleepy devices, i.e., EMBER_STAR_COORDINATOR, EMBER_STAR_RANGE_EXTENDER, or EMBER_STAR_END_DEVICE, the radio is always on.

EMBER_ASSOCIATING 

The node is currently trying to associate to a Connect network.

EMBER_SCANNING 

The node is currently performing a MAC-level scanning procedure.

Definition at line 506 of file ember-types.h.

Defines the events reported to the application by the ::emberCounterHandler().

Enumerator
EMBER_COUNTER_PHY_IN_PACKETS 

Every packet that comes in over the radio (except MAC ACKs).

EMBER_COUNTER_PHY_OUT_PACKETS 

Every packet that goes out over the radio (except MAC ACKs).

EMBER_COUNTER_MAC_IN_UNICAST 

Incoming MAC unicasts.

EMBER_COUNTER_MAC_IN_BROADCAST 

Incoming MAC broadcasts.

EMBER_COUNTER_MAC_OUT_UNICAST_NO_ACK 

Outgoing MAC unicasts that do not require an ACK.

EMBER_COUNTER_MAC_OUT_UNICAST_ACK_SUCCESS 

Outgoing MAC unicasts that require an ACK for which an ACK was received possibly after retrying.

EMBER_COUNTER_MAC_OUT_UNICAST_ACK_FAIL 

Outgoing unicasts for which an ACK was never received even after retrying.

EMBER_COUNTER_MAC_OUT_UNICAST_CCA_FAIL 

Outgoing MAC packets which were never transmitted because clear channel assessment always returned busy.

EMBER_COUNTER_MAC_OUT_UNICAST_RETRY 

Outgoing unicast retries. This does not count the initial transmission. Note a single MAC transmission can result in multiple retries.

EMBER_COUNTER_MAC_OUT_BROADCAST 
EMBER_COUNTER_MAC_OUT_BROADCAST_CCA_FAIL 
EMBER_COUNTER_MAC_DROP_IN_MEMORY 

Dropped incoming MAC packets (out of memory)

EMBER_COUNTER_MAC_DROP_IN_FRAME_COUNTER 

Dropped incoming MAC packets (invalid frame counter)

EMBER_COUNTER_MAC_DROP_IN_DECRYPT 

Dropped incoming MAC packets (can't decrypt)

EMBER_COUNTER_NWK_OUT_FORWARDING 

Outgoing NWK forwarded packets

EMBER_COUNTER_NWK_IN_SUCCESS 

Incoming NWK data frames correctly processed

EMBER_COUNTER_NWK_DROP_IN_WRONG_SOURCE 

Dropped incoming NWK packets (wrong source node)

EMBER_COUNTER_NWK_DROP_IN_FORWARDING 

Dropped incoming NWK packets (can't forward)

EMBER_COUNTER_UART_IN_DATA 

UART in and out data

EMBER_COUNTER_UART_IN_MANAGEMENT 
EMBER_COUNTER_UART_IN_FAIL 
EMBER_COUNTER_UART_OUT_DATA 
EMBER_COUNTER_UART_OUT_MANAGEMENT 
EMBER_COUNTER_UART_OUT_FAIL 
EMBER_COUNTER_ROUTE_2_HOP_LOOP 
EMBER_COUNTER_BUFFER_ALLOCATION_FAIL 
EMBER_ASH_V3_ACK_SENT 

ASHv3

EMBER_ASH_V3_ACK_RECEIVED 
EMBER_ASH_V3_NACK_SENT 
EMBER_ASH_V3_NACK_RECEIVED 
EMBER_ASH_V3_RESEND 
EMBER_ASH_V3_BYTES_SENT 
EMBER_ASH_V3_TOTAL_BYTES_RECEIVED 
EMBER_ASH_V3_VALID_BYTES_RECEIVED 
EMBER_ASH_V3_PAYLOAD_BYTES_SENT 
EMBER_COUNTER_TYPE_COUNT 

A placeholder giving the number of Ember counter types.

Definition at line 528 of file ember-types.h.

Either marks an event as inactive or specifies the units for the event execution time.

Enumerator
EMBER_EVENT_INACTIVE 

The event is not scheduled to run.

EMBER_EVENT_MS_TIME 

The execution time is in approximate milliseconds.

EMBER_EVENT_QS_TIME 

The execution time is in 'binary' quarter seconds (256 approximate milliseconds each).

EMBER_EVENT_MINUTE_TIME 

The execution time is in 'binary' minutes (65536 approximate milliseconds each).

EMBER_EVENT_ZERO_DELAY 

The event is scheduled to run at the earliest opportunity.

Definition at line 402 of file ember-types.h.

802.15.4 addressing mode.

Enumerator
EMBER_MAC_ADDRESS_MODE_NONE 
EMBER_MAC_ADDRESS_MODE_SHORT 
EMBER_MAC_ADDRESS_MODE_LONG 

Definition at line 247 of file ember-types.h.

Message options.

Enumerator
EMBER_OPTIONS_NONE 

No options.

EMBER_OPTIONS_SECURITY_ENABLED 

The packet should be sent out encrypted.

EMBER_OPTIONS_ACK_REQUESTED 

An acknowledgment should be requested for the outgoing packet.

EMBER_OPTIONS_HIGH_PRIORITY 

The packet should be sent with high priority.

EMBER_OPTIONS_INDIRECT 

The packet should be sent via the indirect queue. This option only applies to nodes with EMBER_MAC_MODE_DEVICE or EMBER_MAC_MODE_SLEEPY_DEVICE node type.

Definition at line 156 of file ember-types.h.

Defines the possible join states for a node.

Enumerator
EMBER_NO_NETWORK 

The node is not associated with a network in any way.

EMBER_JOINING_NETWORK 

The node is currently attempting to join a network.

EMBER_JOINED_NETWORK 

The node is joined to a network.

Definition at line 118 of file ember-types.h.

Defines the possible types of nodes and the roles that a node might play in a network.

Enumerator
EMBER_UNKNOWN_DEVICE 

Device is not joined.

EMBER_STAR_COORDINATOR 

Star or extended star topology device: will relay messages and can act as a parent to range extender and end device nodes.

EMBER_STAR_RANGE_EXTENDER 

Star or extended star topology device: will relay messages and can act as a parent to end device nodes.

EMBER_STAR_END_DEVICE 

Star or extended star topology device: communicates only with its parent and will not relay messages.

EMBER_STAR_SLEEPY_END_DEVICE 

Star or extended star topology device: an end device whose radio can be turned off to save power. The application must call emberPollForData() to receive messages.

EMBER_DIRECT_DEVICE 

A device able to send and receive messages from other devices in range on the same PAN ID, with no star topology restrictions. Such device does not relay messages. A node can be started as a direct device by using the emberJoinCommissioned() API.

EMBER_MAC_MODE_DEVICE 

A device able to send and receive MAC-level messages. A node can be started as a MAC mode device by using the emberJoinCommissioned() API or the emberJoinNetworkExtended() API.

EMBER_MAC_MODE_SLEEPY_DEVICE 

A sleepy device able to send and receive MAC-level messages. A node can be started as a sleepy MAC mode device by using the emberJoinCommissioned() API or the emberJoinNetworkExtended() API.

Definition at line 71 of file ember-types.h.

Function Documentation

uint8_t* emberKeyContents ( EmberKeyData key)

This function allows the programmer to gain access to the key data bytes of the EmberKeyData structure.

Parameters
keyA Pointer to an EmberKeyData structure.
Returns
uint8_t* Returns a pointer to the first byte of the key data.