Microchip® Advanced Software Framework

FTMPackageCore.h File Reference
#include "lorawan.h"

Data Structures

struct  FragSessionSetupReq_s
 
struct  sFTMPackageParams
 

Macros

#define FRAG_DATA   0x08
 
#define FRAG_DATA_PARAM_IDX   (2)
 
#define FRAG_PKGVERSION_ANS   0x00
 
#define FRAG_PKGVERSION_ANS_LEN   (3)
 
#define FRAG_PKGVERSION_REQ   0x00
 
#define FRAG_PKGVERSION_REQ_LEN   (1)
 
#define FRAG_PKGVERSION_VALUE   (1)
 
#define FRAG_SESSION_ALREADYEXIST   0x10
 
#define FRAG_SESSION_DELETE_ANS   0x03
 
#define FRAG_SESSION_DELETE_ANS_LEN   2
 
#define FRAG_SESSION_DELETE_REQ   0x03
 
#define FRAG_SESSION_DELETE_REQ_FRAG_INDEX(x)   ((x) & 0x03)
 
#define FRAG_SESSION_DELETE_REQ_LEN   2
 
#define FRAG_SESSION_DELETE_REQ_PARAM_IDX   (2)
 
#define FRAG_SESSION_DESCUNSUPPORTED   0x08
 
#define FRAG_SESSION_ENCUNSUPPORTED   0x01
 
#define FRAG_SESSION_INDEXUSUPPORTED   0x04
 
#define FRAG_SESSION_NOTENOUGHMEMORY   0x02
 
#define FRAG_SESSION_SETUP_ANS   0x02
 
#define FRAG_SESSION_SETUP_ANS_LEN   (2)
 
#define FRAG_SESSION_SETUP_REQ   0x02
 
#define FRAG_SESSION_SETUP_REQ_LEN   (11)
 
#define FRAG_SESSION_SETUP_REQ_PARAM_IDX   (2)
 
#define FRAG_SESSION_STATUS_ANS   0x01
 
#define FRAG_SESSION_STATUS_ANS_LEN   (5)
 
#define FRAG_SESSION_STATUS_REQ   0x01
 
#define FRAG_SESSION_STATUS_REQ_LEN   (2)
 
#define FRAG_STATUS_REQ_PARAM_FRAGINDEX(x)   (((x) >> 1) & 0x03)
 
#define FRAG_STATUS_REQ_PARAM_IDX   (2)
 
#define FRAG_STATUS_REQ_PARAM_PARTICIPANTS(x)   ((x) & 0x01)
 
#define LORAWAN_FTMPACKAGE_ID   3
 
#define LORAWAN_FTMPACKAGE_PORT   201
 

Typedefs

typedef struct
FragSessionSetupReq_s 
FragSessionSetupReq_t
 
typedef void(* FTMImageReceivedCb_t )(void)
 
typedef struct sFTMPackageParams FTMPackageParams_t
 

Functions

void FTMPackageCore (appCbParams_t *appdata)
 
void FTMPackageSetFuotaDescriptor (uint32_t descriptor)
 
void FTMPackageSetImageReceivedCallback (FTMImageReceivedCb_t cb)
 

#define FRAG_DATA   0x08
#define FRAG_DATA_PARAM_IDX   (2)
#define FRAG_PKGVERSION_ANS   0x00
#define FRAG_PKGVERSION_ANS_LEN   (3)
#define FRAG_PKGVERSION_REQ   0x00
#define FRAG_PKGVERSION_REQ_LEN   (1)
#define FRAG_PKGVERSION_VALUE   (1)
#define FRAG_SESSION_ALREADYEXIST   0x10
#define FRAG_SESSION_DELETE_ANS   0x03
#define FRAG_SESSION_DELETE_ANS_LEN   2
#define FRAG_SESSION_DELETE_REQ   0x03
#define FRAG_SESSION_DELETE_REQ_FRAG_INDEX (   x)    ((x) & 0x03)
#define FRAG_SESSION_DELETE_REQ_LEN   2
#define FRAG_SESSION_DELETE_REQ_PARAM_IDX   (2)
#define FRAG_SESSION_DESCUNSUPPORTED   0x08
#define FRAG_SESSION_ENCUNSUPPORTED   0x01
#define FRAG_SESSION_INDEXUSUPPORTED   0x04
#define FRAG_SESSION_NOTENOUGHMEMORY   0x02
#define FRAG_SESSION_SETUP_ANS   0x02
#define FRAG_SESSION_SETUP_ANS_LEN   (2)
#define FRAG_SESSION_SETUP_REQ   0x02
#define FRAG_SESSION_SETUP_REQ_LEN   (11)
#define FRAG_SESSION_SETUP_REQ_PARAM_IDX   (2)
#define FRAG_SESSION_STATUS_ANS   0x01
#define FRAG_SESSION_STATUS_ANS_LEN   (5)
#define FRAG_SESSION_STATUS_REQ   0x01
#define FRAG_SESSION_STATUS_REQ_LEN   (2)
#define FRAG_STATUS_REQ_PARAM_FRAGINDEX (   x)    (((x) >> 1) & 0x03)
#define FRAG_STATUS_REQ_PARAM_IDX   (2)
#define FRAG_STATUS_REQ_PARAM_PARTICIPANTS (   x)    ((x) & 0x01)
#define LORAWAN_FTMPACKAGE_ID   3
#define LORAWAN_FTMPACKAGE_PORT   201

typedef void(* FTMImageReceivedCb_t)(void)

Global FTMPackage parameters

void FTMPackageCore ( appCbParams_t appdata)
void FTMPackageSetFuotaDescriptor ( uint32_t  descriptor)
void FTMPackageSetImageReceivedCallback ( FTMImageReceivedCb_t  cb)