2019-10-21 16:14:33 +02:00
|
|
|
/****************************************************************************
|
2022-10-18 08:55:15 +02:00
|
|
|
* drivers/modem/alt1250/altcom_lwm2m_hdlr.h
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
2021-01-25 10:00:05 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
2021-01-25 10:00:05 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
2021-01-25 10:00:05 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
#ifndef __DRIVERS_MODEM_ALT1250_ALTCOM_LWM2M_HDLR_H
|
|
|
|
#define __DRIVERS_MODEM_ALT1250_ALTCOM_LWM2M_HDLR_H
|
2019-10-21 16:14:33 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 08:55:15 +02:00
|
|
|
* Included Files
|
2019-10-21 16:14:33 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
#include <nuttx/config.h>
|
2019-10-21 16:14:33 +02:00
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
2019-10-21 16:14:33 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 08:55:15 +02:00
|
|
|
* Public Types
|
2019-10-21 16:14:33 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
typedef CODE int32_t (*lwm2mstub_hndl_t)(FAR uint8_t *, size_t,
|
|
|
|
FAR void **, size_t);
|
2019-10-21 16:14:33 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 08:55:15 +02:00
|
|
|
* Public Function Prototypes
|
2019-10-21 16:14:33 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 08:55:15 +02:00
|
|
|
* Name: lwm2mstub_get_handler
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
|
|
|
* Description:
|
2022-10-18 08:55:15 +02:00
|
|
|
* Get handler for lwm2m stub.
|
|
|
|
*
|
|
|
|
* Input Parameters:
|
|
|
|
* pktbuf - Pointer to the received packet.
|
|
|
|
* pktsz - Pointer to the data size after parsing the received packet.
|
|
|
|
* lcmdid - Pointer to a variable that stores the lwm2m LAPI command ID.
|
|
|
|
*
|
|
|
|
* Returned Value:
|
|
|
|
* If a lwm2m handler associated with the received packet is found, the
|
|
|
|
* function pointer of the handler is returned. If not found, returns NULL.
|
2019-10-21 16:14:33 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
lwm2mstub_hndl_t lwm2mstub_get_handler(FAR uint8_t **pktbuf,
|
|
|
|
FAR size_t *pktsz,
|
|
|
|
uint32_t *lcmdid);
|
2019-10-21 16:14:33 +02:00
|
|
|
|
2022-10-18 08:55:15 +02:00
|
|
|
#endif /* __DRIVERS_MODEM_ALT1250_ALTCOM_LWM2M_HDLR_H */
|