le_avc_common.h File Reference

#include "legato.h"
#include "le_limit_common.h"

Go to the source code of this file.

Macros

#define LE_AVC_APN_NAME_MAX_LEN   48
 
#define LE_AVC_APN_NAME_MAX_LEN_BYTES   49
 
#define LE_AVC_USERNAME_MAX_LEN   28
 
#define LE_AVC_USERNAME_MAX_LEN_BYTES   29
 
#define LE_AVC_PASSWORD_MAX_LEN   28
 
#define LE_AVC_PASSWORD_MAX_LEN_BYTES   29
 
#define LE_AVC_NUM_RETRY_TIMERS   8
 
#define LE_AVC_POLLING_TIMER_MAX_VAL   525600
 
#define LE_AVC_POLLING_TIMER_MIN_VAL   0
 
#define LE_AVC_RETRY_TIMER_MAX_VAL   20160
 
#define LE_AVC_RETRY_TIMER_MIN_VAL   0
 
#define LE_AVC_HTTP_STATUS_INVALID   65535
 
#define LE_AVC_COMM_INFO_STR_MAX_LEN   256
 
#define LE_AVC_MAX_LWM2M_RESOURCE_LEN   512
 
#define LE_AVC_MAX_LWM2M_RESOURCE_BYTES   513
 
#define LE_AVC_COMM_INFO_UDP_NO_ERR   0
 
#define LE_AVC_COMM_INFO_UDP_OPEN_ERR   1
 
#define LE_AVC_COMM_INFO_UDP_CLOSE_ERR   2
 
#define LE_AVC_COMM_INFO_UDP_SEND_ERR   3
 
#define LE_AVC_COMM_INFO_UDP_RECV_ERR   4
 
#define LE_AVC_COMM_INFO_UDP_CONNECT_ERR   5
 
#define LE_AVC_COMM_INFO_BEARER_UP   6
 
#define LE_AVC_COMM_INFO_BEARER_DOWN   7
 
#define LE_AVC_COMM_INFO_PDP_CONTEXT   8
 
#define LE_AVC_COMM_INFO_COAP_201_CREATED   65
 
#define LE_AVC_COMM_INFO_COAP_202_DELETED   66
 
#define LE_AVC_COMM_INFO_COAP_204_CHANGED   68
 
#define LE_AVC_COMM_INFO_COAP_205_CONTENT   69
 
#define LE_AVC_COMM_INFO_COAP_231_CONTINUE   95
 
#define LE_AVC_COMM_INFO_COAP_400_BAD_REQUEST   128
 
#define LE_AVC_COMM_INFO_COAP_401_UNAUTHORIZED   129
 
#define LE_AVC_COMM_INFO_COAP_402_BAD_OPTION   130
 
#define LE_AVC_COMM_INFO_COAP_404_NOT_FOUND   132
 
#define LE_AVC_COMM_INFO_COAP_405_METHOD_NOT_ALLOWED   133
 
#define LE_AVC_COMM_INFO_COAP_406_NOT_ACCEPTABLE   134
 
#define LE_AVC_COMM_INFO_COAP_408_REQ_ENTITY_INCOMPLETE   136
 
#define LE_AVC_COMM_INFO_COAP_412_PRECONDITION_FAILED   140
 
#define LE_AVC_COMM_INFO_COAP_413_ENTITY_TOO_LARGE   141
 
#define LE_AVC_COMM_INFO_COAP_500_INTERNAL_SERVER_ERROR   160
 
#define LE_AVC_COMM_INFO_COAP_501_NOT_IMPLEMENTED   161
 
#define LE_AVC_COMM_INFO_COAP_503_SERVICE_UNAVAILABLE   163
 
#define LE_AVC_SERVER_ID_ALL_SERVERS   65535
 
#define LE_AVC_SERVER_ID_AIRVANTAGE   1
 
#define LE_AVC_CONFIG_TREE_ROOT   "avcService:/"
 
#define LE_AVC_CONFIG_SIM_APDU_PATH   "SIM_APDU"
 
#define LE_AVC_CONFIG_SIM_APDU_RESP_PATH   "SIM_APDU_RESP"
 

Typedefs

typedef struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
 
typedef struct le_avc_SessionRequestEventHandler * le_avc_SessionRequestEventHandlerRef_t
 
typedef struct le_avc_CommInfoHandler * le_avc_CommInfoHandlerRef_t
 
typedef struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
 
typedef void(* le_avc_StatusHandlerFunc_t) (le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t progress, void *contextPtr)
 
typedef void(* le_avc_SessionRequestHandlerFunc_t) (le_avc_SessionRequest_t request, void *contextPtr)
 
typedef void(* le_avc_CommInfoHandlerFunc_t) (uint8_t code, const char *LE_NONNULL str, void *contextPtr)
 

Enumerations

enum  le_avc_Status_t {
  LE_AVC_NO_UPDATE = 0, LE_AVC_DOWNLOAD_PENDING = 1, LE_AVC_DOWNLOAD_IN_PROGRESS = 2, LE_AVC_DOWNLOAD_COMPLETE = 3,
  LE_AVC_DOWNLOAD_FAILED = 4, LE_AVC_INSTALL_PENDING = 5, LE_AVC_INSTALL_IN_PROGRESS = 6, LE_AVC_INSTALL_COMPLETE = 7,
  LE_AVC_INSTALL_FAILED = 8, LE_AVC_UNINSTALL_PENDING = 9, LE_AVC_UNINSTALL_IN_PROGRESS = 10, LE_AVC_UNINSTALL_COMPLETE = 11,
  LE_AVC_UNINSTALL_FAILED = 12, LE_AVC_SESSION_STARTED = 13, LE_AVC_SESSION_BS_STARTED = 14, LE_AVC_SESSION_STOPPED = 15,
  LE_AVC_SESSION_FAILED = 16, LE_AVC_REBOOT_PENDING = 17, LE_AVC_CONNECTION_PENDING = 18, LE_AVC_AUTH_STARTED = 19,
  LE_AVC_AUTH_FAILED = 20, LE_AVC_CERTIFICATION_OK = 21, LE_AVC_CERTIFICATION_KO = 22, LE_AVC_DOWNLOAD_TIMEOUT = 23
}
 
enum  le_avc_UserAgreement_t {
  LE_AVC_USER_AGREEMENT_CONNECTION = 0, LE_AVC_USER_AGREEMENT_DOWNLOAD = 1, LE_AVC_USER_AGREEMENT_INSTALL = 2, LE_AVC_USER_AGREEMENT_UNINSTALL = 3,
  LE_AVC_USER_AGREEMENT_REBOOT = 4
}
 
enum  le_avc_SessionRequest_t { LE_AVC_SESSION_ACQUIRE = 0, LE_AVC_SESSION_RELEASE = 1 }
 
enum  le_avc_UpdateType_t { LE_AVC_UNKNOWN_UPDATE = 0, LE_AVC_FIRMWARE_UPDATE = 1, LE_AVC_FRAMEWORK_UPDATE = 2, LE_AVC_APPLICATION_UPDATE = 3 }
 
enum  le_avc_ErrorCode_t {
  LE_AVC_ERR_NONE = 0, LE_AVC_ERR_BAD_PACKAGE = 1, LE_AVC_ERR_INTERNAL = 2, LE_AVC_ERR_SECURITY_FAILURE = 3,
  LE_AVC_ERR_RAM = 4, LE_AVC_ERR_NETWORK = 5, LE_AVC_ERR_FLASH = 6, LE_AVC_ERR_PKG_TOO_BIG = 7
}
 
enum  le_avc_SessionType_t { LE_AVC_BOOTSTRAP_SESSION = 0, LE_AVC_DM_SESSION = 1, LE_AVC_SESSION_INVALID = 2 }
 
enum  le_avc_CredentialStatus_t { LE_AVC_NO_CREDENTIAL_PROVISIONED = 1, LE_AVC_BS_CREDENTIAL_PROVISIONED = 2, LE_AVC_DM_CREDENTIAL_PROVISIONED = 3 }
 
enum  le_avc_ConfigType_t { LE_AVC_CONFIG_TYPE_SIM_APDU_RESPONSE = 1 }
 

Detailed Description

Type definitions for le_avc.