Microchip® Advanced Software Framework

vendor_data.c File Reference

Implementation of vendor-specific data handling.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdio.h>
#include "rf4ce.h"
#include "zrc.h"
#include "vendor_data.h"
#include "app_config.h"
#include "tfa.h"
#include "conf_board.h"

Macros

#define FW_VERSION_MAJOR   (0x02)
 
#define FW_VERSION_MINOR   (0x00)
 
#define FW_VERSION_REV   (0x00)
 
#define IMAGE_SIZE   ((uint32_t)60 * 1024)
 
#define IMAGE_START_ADDR   ((uint32_t)60 * 1024)
 

Functions

 FLASH_EXTERN (uint16_t VendorIdentifier)
 
static uint16_t get_batmon_voltage (void)
 
void nlme_rx_enable_confirm (nwk_enum_t Status)
 
void vendor_data_confirm (nwk_enum_t Status, uint8_t PairingRef, profile_id_t ProfileId, uint8_t Handle)
 
void vendor_data_ind (uint8_t PairingRef, uint16_t VendorId, uint8_t nsduLength, uint8_t *nsdu, uint8_t RxLinkQuality, uint8_t RxFlags)
 

#define FW_VERSION_MAJOR   (0x02)

Referenced by vendor_data_ind().

#define FW_VERSION_MINOR   (0x00)

Referenced by vendor_data_ind().

#define FW_VERSION_REV   (0x00)

Referenced by vendor_data_ind().

#define IMAGE_SIZE   ((uint32_t)60 * 1024)

Referenced by vendor_data_confirm().

#define IMAGE_START_ADDR   ((uint32_t)60 * 1024)

Referenced by vendor_data_confirm().

FLASH_EXTERN ( uint16_t  VendorIdentifier)
static uint16_t get_batmon_voltage ( void  )
static

References GET_BATTERY_VOLTAGE.

Referenced by vendor_data_ind().

void vendor_data_confirm ( nwk_enum_t  Status,
uint8_t  PairingRef,
profile_id_t  ProfileId,
uint8_t  Handle 
)

References IMAGE_SIZE, and IMAGE_START_ADDR.

Referenced by vendor_data_ind().