Microchip® Advanced Software Framework

vendor_data.c File Reference

Implementation of vendor-specific data handling.

Id:
vendor_data.c 24198 2010-11-15 20:46:17Z uwalter
Author
Microchip Technology Inc: http://www.microchip.com
Support: https://www.microchip.com/support/
#include <stdio.h>
#include "compiler.h"
#include "rf4ce.h"
#include "zrc.h"
#include "vendor_data.h"
#include "pal.h"
#include "pal_flash.h"
#include "tfa.h"
#include "qdebug.h"
#include "qdebug_transport.h"

Macros

#define IMAGE_SIZE   ((uint32_t)63*1024)
 
#define IMAGE_START_ADDR   ((uint32_t)63*1024)
 

Functions

 FLASH_DECLARE (uint16_t VendorIdentifier)
 
void vendor_data_ind (uint8_t PairingRef, profile_id_t ProfileId, uint16_t VendorId, uint8_t nsduLength, uint8_t *nsdu, uint8_t RxLinkQuality, uint8_t RxFlags)
 Vendor data indication, to take various action on incoming data. More...
 
bool vendor_data_request (uint8_t PairingRef, profile_id_t ProfileId, uint16_t VendorId, uint8_t nsduLength, uint8_t *nsdu, uint8_t TxOptions)
 Function to send the vendor specific data request. More...
 

#define IMAGE_SIZE   ((uint32_t)63*1024)

Referenced by vendor_data_ind().

#define IMAGE_START_ADDR   ((uint32_t)63*1024)

Referenced by vendor_data_ind().

FLASH_DECLARE ( uint16_t  VendorIdentifier)
void vendor_data_ind ( uint8_t  PairingRef,
profile_id_t  ProfileId,
uint16_t  VendorId,
uint8_t  nsduLength,
uint8_t *  nsdu,
uint8_t  RxLinkQuality,
uint8_t  RxFlags 
)
bool vendor_data_request ( uint8_t  PairingRef,
profile_id_t  ProfileId,
uint16_t  VendorId,
uint8_t  nsduLength,
uint8_t *  nsdu,
uint8_t  TxOptions 
)

Function to send the vendor specific data request.

Vendor data request.

Parameters
PairingRefThe pairing reference of the device.
ProfileIdProfile-Id (ZRC or ZID)
VendorIdVendor-id
nsduLengthlength of the data
nsduThe data pointer.
TxOptionsTo fill in the control field

References nlde_data_request(), PROFILE_ID_VENDOR_DATA, and UNUSED.