1 /*------------------------------------------------------------------------------------------------*/
2 /* UNICENS V2.1.0-3491 */
3 /* Copyright (c) 2017 Microchip Technology Germany II GmbH & Co. KG. */
5 /* This program is free software: you can redistribute it and/or modify */
6 /* it under the terms of the GNU General Public License as published by */
7 /* the Free Software Foundation, either version 2 of the License, or */
8 /* (at your option) any later version. */
10 /* This program is distributed in the hope that it will be useful, */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
13 /* GNU General Public License for more details. */
15 /* You should have received a copy of the GNU General Public License */
16 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* You may also obtain this software under a propriety license from Microchip. */
19 /* Please contact Microchip for further information. */
20 /*------------------------------------------------------------------------------------------------*/
24 * \brief Internal header file of Application Message Tx Pool
26 * \cond UCS_INTERNAL_DOC
34 /*------------------------------------------------------------------------------------------------*/
36 /*------------------------------------------------------------------------------------------------*/
38 #include "ucs_amsmessage.h"
45 /*------------------------------------------------------------------------------------------------*/
47 /*------------------------------------------------------------------------------------------------*/
50 /*------------------------------------------------------------------------------------------------*/
52 /*------------------------------------------------------------------------------------------------*/
53 /*! \brief Application Message Tx Pool Class
54 * \details Provides a predefined number of Tx message objects to an internal class
58 void *ucs_user_ptr; /*!< \brief User reference that needs to be passed in every callback function */
59 CDlList msg_queue; /*!< \brief Queue of messages for the receiver */
63 /*------------------------------------------------------------------------------------------------*/
65 /*------------------------------------------------------------------------------------------------*/
66 extern void Amtp_Ctor(CAmtp *self, Amsg_IntMsgTx_t msg_ptr[], uint8_t data_ptr[], uint8_t msg_cnt, uint16_t payload_sz, void *ucs_user_ptr);
67 extern Ucs_AmsTx_Msg_t* Amtp_AllocMsg(CAmtp *self);
73 #endif /* UCS_AMD_H */
80 /*------------------------------------------------------------------------------------------------*/
82 /*------------------------------------------------------------------------------------------------*/