Microchip® Advanced Software Framework

vendor_data.c File Reference

Implementation of vendor-specific data handling.

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

#include <stdio.h>
#include "rf4ce.h"
#include "zrc.h"
#include "vendor_data.h"
#include "pal.h"
#include "tal.h"
#include "conf_board.h"

Macros

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

Functions

 FLASH_EXTERN (uint16_t VendorIdentifier)
 
void vendor_data_confirm (nwk_enum_t Status, uint8_t PairingRef, profile_id_t ProfileId, uint8_t Handle)
 
bool vendor_data_request (uint8_t PairingRef, profile_id_t ProfileId, uint16_t VendorId, uint8_t nsduLength, uint8_t *nsdu, uint8_t TxOptions)
 Vendor data request. More...
 

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

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

Referenced by vendor_data_request().

bool vendor_data_request ( uint8_t  PairingRef,
profile_id_t  ProfileId,
uint16_t  VendorId,
uint8_t  nsduLength,
uint8_t *  nsdu,
uint8_t  TxOptions 
)

Vendor data request.

The vendor data request allows a device to send a vendor specific data frame.

Parameters
PairingRefPairing reference of the recipient of the transmission
ProfileIdProfile id used for the transmission
VendorIdVendor id used for the transmission
nsduLengthLength of the payload data
nsduPointer to the payload data
TxOptionsTransit options
Returns
true if command could be handled; else false

References FUNC_PTR, nlde_data_request(), PROFILE_ID_ZRC, and vendor_data_confirm().