Implementation of vendor-specific data handling.
#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 | ||
) |
Vendor data indication, to take various action on incoming data.
Vendor data indication.
PairingRef | The pairing reference of the device. |
ProfileId | Profile-Id (ZRC or ZID) |
VendorId | Vendor-id |
nsduLength | length of the data |
nsdu | The data pointer. |
TxOptions | Receive flags |
References ALIVE_REQ, ALIVE_RESP, BATTERY_STATUS_REQ, BATTERY_STATUS_RESP, flash_fill_page_buffer(), flash_program_page(), flash_swap(), fw_data_frame_tag::frame_cnt, fw_data_frame_tag::fw_data, FW_DATA_REQ, FW_DATA_RESP, FW_SWAP_REQ, FW_VERSION_MAJOR, FW_VERSION_MINOR, FW_VERSION_REQ, FW_VERSION_RESP, FW_VERSION_REV, IMAGE_SIZE, IMAGE_START_ADDR, nlde_data_request(), nlme_rx_enable_request(), PGM_READ_WORD, PROFILE_ID_VENDOR_DATA, QDebug_ProcessCommands(), RX_FLAG_WITH_SEC, RX_index, RX_ON_REQ, RX_ON_RESP, RxHandler(), tfa_get_batmon_voltage(), fw_data_frame_tag::total_num_frames, TXO_ACK_REQ, TXO_CH_NOT_SPEC, TXO_DST_ADDR_NET, TXO_MULTI_CH, TXO_SEC_REQ, TXO_UNICAST, TXO_VEND_SPEC, UNUSED, VD_NOT_SUPPORTED_ATTRIBUTE, VD_SUCCESS, VD_UNSUPPORTED_SIZE, and vendor_app_alive_req().
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.
PairingRef | The pairing reference of the device. |
ProfileId | Profile-Id (ZRC or ZID) |
VendorId | Vendor-id |
nsduLength | length of the data |
nsdu | The data pointer. |
TxOptions | To fill in the control field |
References nlde_data_request(), PROFILE_ID_VENDOR_DATA, and UNUSED.