enms_node.h File Reference

ENMS Node service API. More...

Data Structures

struct  EnmsService
 
struct  EnmsIndicationPolicy
 
struct  EnmsNode
 

Macros

#define ENMS_NODE_MAX_SERVICES   10
 Maximum number of services that can be registered.
 
#define ENMS_DEFAULT_PORT   UINT16_C(0xf0b1)
 Default UDP port number for the ENMS service.
 

Enumerations

enum  EnmsNodeResult {
  ENMS_NODE_RESULT_OK = 0 , ENMS_NODE_RESULT_INVALID_INPUT_ARGUMENT = 1 , ENMS_NODE_RESULT_FAILED_TO_REGISTER_UDP_SOCKET = 2 , ENMS_NODE_RESULT_FAILED_TO_CREATE_TASK = 3 ,
  ENMS_NODE_RESULT_FAILED_TO_RUN_TASK = 4 , ENMS_NODE_RESULT_FAILED_TO_REGISTER_SERVICE = 5 , ENMS_NODE_RESULT_SERVICE_ALREADY_REGISTERED = 6 , ENMS_NODE_RESULT_FAILED_TO_SEND_PACKET = 7
}
 Possible ENMS Node function results. More...
 

Functions

EnmsNodeResult ENMS_NODE_Init (EnmsNode *enmsNode, uint16_t port, const uint8_t hwId[16], const EnmsIndicationPolicy *indicationPolicy)
 Initializes the ENMS Node service.
 
EnmsNodeResult ENMS_NODE_Deinit (EnmsNode *enmsNode)
 
EnmsNodeResult ENMS_NODE_Start (EnmsNode *enmsNode)
 Starts the ENMS Node service.
 
EnmsNodeResult ENMS_NODE_Stop (EnmsNode *enmsNode)
 Stops the ENMS Node service.
 
EnmsNodeResult ENMS_NODE_RegisterService (EnmsNode *enmsNode, const char *serviceName, uint8_t serviceState)
 Registers a service.
 
EnmsNodeResult ENMS_NODE_SetServiceState (EnmsNode *enmsNode, const char *serviceName, uint8_t serviceState)
 Sets service state.
 

Detailed Description

ENMS Node service API.

License: $License$
Version
$Revision$
Purpose: ENMS service
Go to Top