2019-10-21 22:14:33 +08:00
|
|
|
/****************************************************************************
|
2022-10-18 14:55:15 +08:00
|
|
|
* drivers/modem/alt1250/altcom_hdlr.h
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
2021-01-25 17:00:05 +08: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 22:14:33 +08:00
|
|
|
*
|
2021-01-25 17:00:05 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
2021-01-25 17:00:05 +08: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 22:14:33 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 14:55:15 +08:00
|
|
|
#ifndef __DRIVERS_MODEM_ALT1250_ALTCOM_HDLR_H
|
|
|
|
#define __DRIVERS_MODEM_ALT1250_ALTCOM_HDLR_H
|
2019-10-21 22:14:33 +08:00
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 14:55:15 +08:00
|
|
|
* Included Files
|
2019-10-21 22:14:33 +08:00
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 14:55:15 +08:00
|
|
|
#include <nuttx/config.h>
|
|
|
|
#include <nuttx/modem/alt1250.h>
|
2019-10-21 22:14:33 +08:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Function Prototypes
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 14:55:15 +08:00
|
|
|
* Name: alt1250_composehdlr
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
|
|
|
* Description:
|
2022-10-18 14:55:15 +08:00
|
|
|
* Get the function pointer of the compose handler associated with the
|
|
|
|
* LAPI command ID.
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
2022-10-18 14:55:15 +08:00
|
|
|
* Input Parameters:
|
|
|
|
* cmdid - ID of the LAPI command.
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
2022-10-18 14:55:15 +08:00
|
|
|
* Returned Value:
|
|
|
|
* Returns a function pointer for the compose handler. If there is no
|
|
|
|
* compose handler associated with the LAPI command ID, NULL is returned.
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 14:55:15 +08:00
|
|
|
compose_handler_t alt1250_composehdlr(uint32_t cmdid);
|
2019-10-21 22:14:33 +08:00
|
|
|
|
|
|
|
/****************************************************************************
|
2022-10-18 14:55:15 +08:00
|
|
|
* Name: alt1250_parsehdlr
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
|
|
|
* Description:
|
2022-10-18 14:55:15 +08:00
|
|
|
* Get the function pointer of the parse handler associated with the
|
|
|
|
* ALTCOM command ID.
|
|
|
|
*
|
|
|
|
* Input Parameters:
|
|
|
|
* altcid - ID of the ALTCOM command.
|
|
|
|
* altver - Version of the ALTCOM command.
|
|
|
|
*
|
|
|
|
* Returned Value:
|
|
|
|
* Returns a function pointer for the parse handler. If there is no
|
|
|
|
* parse handler associated with the ALTCOM command ID, NULL is returned.
|
2019-10-21 22:14:33 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-10-18 14:55:15 +08:00
|
|
|
parse_handler_t alt1250_parsehdlr(uint16_t altcid, uint8_t altver);
|
2019-10-21 22:14:33 +08:00
|
|
|
|
2022-10-18 14:55:15 +08:00
|
|
|
#endif /* __DRIVERS_MODEM_ALT1250_ALTCOM_HDLR_H */
|