Microchip® Advanced Software Framework

terminal_tgt/vendor_data.c File Reference
#include <stdio.h>
#include "rf4ce.h"
#include "zrc.h"
#include "vendor_data.h"
#include "pal.h"

Functions

 FLASH_EXTERN (uint16_t VendorIdentifier)
 
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...
 
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...
 

FLASH_EXTERN ( uint16_t  VendorIdentifier)
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
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().

Referenced by print_vendor_data_submenu().