Microchip® Advanced Software Framework

atmel_rf4ce/examples/atmega128rfa1_avr477_target/vendor_data.c File Reference
#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"

Macros

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

Functions

 FLASH_DECLARE (uint16_t VendorIdentifier)
 
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)63*1024)
#define IMAGE_START_ADDR   ((uint32_t)63*1024)

FLASH_DECLARE ( uint16_t  VendorIdentifier)
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 nlde_data_request(), PROFILE_ID_VENDOR_DATA, and UNUSED.