Microchip® Advanced Software Framework

single_button_ctr/vendor_data.c File Reference
#include <stdio.h>
#include "rf4ce.h"
#include "zrc.h"
#include "vendor_data.h"
#include "app_config.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 vendor_data_confirm (nwk_enum_t Status, uint8_t PairingRef, profile_id_t ProfileId, uint8_t Handle)
 Post processing of the vendor data confirm. More...
 

#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)

FLASH_EXTERN ( uint16_t  VendorIdentifier)
static uint16_t get_batmon_voltage ( void  )
static
void vendor_data_confirm ( nwk_enum_t  Status,
uint8_t  PairingRef,
profile_id_t  ProfileId,
uint8_t  Handle 
)

Post processing of the vendor data confirm.

Parameters
statusnwk status (constants defined by nwk layer)
PairingRefPairing reference
HandleNetwork Layer retries

References EOT, get_next_tx_buffer(), RF4CONTROL_PID, RF4CONTROL_PID_LEN, and VENDOR_DATA_CONFIRM.

Referenced by handle_incoming_msg(), and vendor_data_request().