Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/Mac_802_15_4/Mac_802_15_4_LPM_Periodic_Transmit/STM32_WPAN/app/app_lpm_transmit_mac_802_15_4_process.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/Mac_802_15_4/Mac_802_15_4_LPM_Periodic_Transmit/STM32_WPAN/app/app_lpm_transmit_mac_802_15_4_process.c206
1 files changed, 206 insertions, 0 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Mac_802_15_4/Mac_802_15_4_LPM_Periodic_Transmit/STM32_WPAN/app/app_lpm_transmit_mac_802_15_4_process.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Mac_802_15_4/Mac_802_15_4_LPM_Periodic_Transmit/STM32_WPAN/app/app_lpm_transmit_mac_802_15_4_process.c
new file mode 100644
index 000000000..927ed44bc
--- /dev/null
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Mac_802_15_4/Mac_802_15_4_LPM_Periodic_Transmit/STM32_WPAN/app/app_lpm_transmit_mac_802_15_4_process.c
@@ -0,0 +1,206 @@
+/**
+******************************************************************************
+* @file app_lpm_transmit_mac_802_15_4_process.c
+* @author MCD Application Connectivity Team
+* @brief Proxy MAC Callback Implementation for Demo Purpose
+* Only callbacks used in the current demo are implemented.
+* Up to the user to update/implement his owns callbacks to match
+* to his application.
+*
+******************************************************************************
+* @attention
+*
+* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
+* All rights reserved.</center></h2>
+*
+* This software component is licensed by ST under Ultimate Liberty license
+* SLA0044, the "License"; You may not use this file except in compliance with
+* the License. You may obtain a copy of the License at:
+* www.st.com/SLA0044
+*
+******************************************************************************
+*/
+
+#include "app_lpm_transmit_mac_802_15_4.h"
+#include "app_lpm_transmit_mac_802_15_4_process.h"
+#include "app_common.h"
+#include "shci.h"
+#include "stm32_seq.h"
+
+
+/* Global define -------------------------------------------------------------*/
+
+/* Global variables ----------------------------------------------------------*/
+
+/* Private defines -----------------------------------------------------------*/
+#define MAX_PIB_ATTRIBUTE_VALUE_LENGTH 52
+
+/* Private macros ------------------------------------------------------------*/
+
+/* Private variables ---------------------------------------------------------*/
+
+/* Private function prototypes -----------------------------------------------*/
+
+/* Public variables ----------------------------------------------------------*/
+
+// extern MAC_associateCnf_t g_MAC_associateCnf;
+
+/*
+* Init
+*/
+
+/******************************************************************************/
+
+
+/******************************************************************************/
+
+
+/* callbacks to be called by the MAC
+* Create an NTS message and enqueue it in the IPCC queue
+*/
+
+MAC_Status_t APP_MAC_mlmeAssociateCnfCb( const MAC_associateCnf_t * pAssociateCnf )
+{
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeAssociateIndCb( const MAC_associateInd_t * pAssociateInd )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeBeaconNotifyIndCb( const MAC_beaconNotifyInd_t * pBeaconNotifyInd )
+{
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeCommStatusIndCb( const MAC_commStatusInd_t * pCommStatusInd )
+{
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeDisassociateCnfCb( const MAC_disassociateCnf_t * pDisassociateCnf )
+{
+
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeDisassociateIndCb( const MAC_disassociateInd_t * pDisassociateInd )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmeGetCnfCb( const MAC_getCnf_t * pGetCnf )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmeOrphanIndCb( const MAC_orphanInd_t * pOrphanInd )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmePollCnfCb( const MAC_pollCnf_t * pPollCnf )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmeResetCnfCb( const MAC_resetCnf_t * pResetCnf )
+{
+ UTIL_SEQ_SetEvt(EVENT_DEVICE_RESET_CNF);
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeRxEnableCnfCb( const MAC_rxEnableCnf_t * pRxEnableCnf )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmeScanCnfCb( const MAC_scanCnf_t * pScanCnf )
+{
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeSetCnfCb( const MAC_setCnf_t * pSetCnf )
+{
+ UTIL_SEQ_SetEvt(EVENT_SET_CNF);
+
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mlmeStartCnfCb( const MAC_startCnf_t * pStartCnf )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mcpsDataIndCb( const MAC_dataInd_t * pDataInd )
+{
+ return MAC_SUCCESS;
+}
+
+MAC_Status_t APP_MAC_mcpsDataCnfCb( const MAC_dataCnf_t * pDataCnf )
+{
+ UTIL_SEQ_SetEvt( EVENT_DATA_CNF );
+ /* Schedule new Data Transmission on LPTimer Timeout */
+ if (HAL_LPTIM_SetOnce_Start_IT(&hlptim1, PERIOD, TIMEOUT) != HAL_OK)
+ {
+ Error_Handler();
+ }
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mcpsPurgeCnfCb( const MAC_purgeCnf_t * pPurgeCnf )
+{
+ return MAC_SUCCESS;
+
+}
+
+MAC_Status_t APP_MAC_mlmeSyncLossIndCb( const MAC_syncLoss_t * syncLossPtr )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeCalibrateCnfCb( const MAC_calibrateCnf_t * pCallibrateCnf)
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeDpsCnfCb( const MAC_dpsCnf_t * pDpsCnf )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeDpsIndCb( const MAC_dpsInd_t * pDpsInd )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeSoundingCnfCb( const MAC_soundingCnf_t * pSoudingCnf)
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeGtsCnfCb( const MAC_gtsCnf_t * pGtsCnf)
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmeGtsIndCb( const MAC_GtsInd_t * pGtsInd )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+
+MAC_Status_t APP_MAC_mlmePollIndCb( const MAC_pollInd_t * pPollInd )
+{
+ return MAC_NOT_IMPLEMENTED_STATUS;
+}
+/******************************************************************************/
+
+//@} \\END CLI Commands
+