aboutsummaryrefslogtreecommitdiffstats
path: root/ucs2-lib/doc/html/search/pages_6c.js
blob: 5f3b8ac71ab0a50c0a82bd22d7defb87622475ad (plain)
1
2
3
4
5
var searchData=
[
  ['list_20of_20images',['List of Images',['../_p__u_m__o_s81118__i_m_g.html',1,'']]],
  ['low_2dlevel_20driver',['Low-Level Driver',['../_p__u_m__s_t_a_r_t_e_d__l_l_d.html',1,'P_UM_GETTING_STARTED']]]
];
ring.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*------------------------------------------------------------------------------------------------*/
/* UNICENS V2.1.0-3491                                                                            */
/* Copyright (c) 2017 Microchip Technology Germany II GmbH & Co. KG.                              */
/*                                                                                                */
/* This program is free software: you can redistribute it and/or modify                           */
/* it under the terms of the GNU General Public License as published by                           */
/* the Free Software Foundation, either version 2 of the License, or                              */
/* (at your option) any later version.                                                            */
/*                                                                                                */
/* This program is distributed in the hope that it will be useful,                                */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of                                 */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                  */
/* GNU General Public License for more details.                                                   */
/*                                                                                                */
/* You should have received a copy of the GNU General Public License                              */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>.                          */
/*                                                                                                */
/* You may also obtain this software under a propriety license from Microchip.                    */
/* Please contact Microchip for further information.                                              */
/*------------------------------------------------------------------------------------------------*/

/*!
 * \file
 * \brief Internal header file of the EndPoint Manager.
 *
 * \cond UCS_INTERNAL_DOC
 * \addtogroup G_EPM
 * @{
 */


#ifndef UCS_EPM_H
#define UCS_EPM_H

/*------------------------------------------------------------------------------------------------*/
/* Includes                                                                                       */
/*------------------------------------------------------------------------------------------------*/
#include "ucs_base.h"
#include "ucs_ret_pb.h"
#include "ucs_rm_pb.h"
#include "ucs_xrm.h"
#include "ucs_factory.h"

#ifdef __cplusplus
extern "C"
{
#endif


/*------------------------------------------------------------------------------------------------*/
/* Structures                                                                                     */
/*------------------------------------------------------------------------------------------------*/
/*!< \brief  Stores data required by EPM during initialization. */
typedef struct Epm_InitData_
{
    CBase * base_ptr;                               /*!< \brief Reference to a base instance */
    CFactory * fac_ptr;                             /*!< \brief Reference to factory instance */
    Ucs_Rm_XrmResDebugCb_t res_debugging_fptr;      /*!< \brief Reference to the observer callback function for XRM resources */
    Ucs_Xrm_CheckUnmuteCb_t check_unmute_fptr;      /*!< \brief Reference to the callback function pointer to signal "check unmute" of devices */

} Epm_InitData_t;

/*! \brief  Class structure of the EndPoint Management. */
typedef struct CEndpointManagement_
{
    /*!< \brief Reference to a base instance */
    CBase *base_ptr;
    /*!< \brief Reference to factory instance */
    CFactory * fac_ptr;
    /*!< \brief Reference to the application debugging callback function for XRM resources */
    Ucs_Rm_XrmResDebugCb_t res_debugging_fptr;
    /*!< \brief Reference to the callback function pointer to signal "check unmute" of devices */
    Ucs_Xrm_CheckUnmuteCb_t check_unmute_fptr;

} CEndpointManagement;

/*------------------------------------------------------------------------------------------------*/
/* Prototypes of class CEndpointManagement                                                        */
/*------------------------------------------------------------------------------------------------*/
extern void Epm_Ctor(CEndpointManagement * self, Epm_InitData_t * init_ptr);
extern void Epm_InitInternalInfos (CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern void Epm_ClearIntInfos(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern void Epm_AddObserver(Ucs_Rm_EndPoint_t * ep_ptr, CObserver * obs_ptr);
extern void Epm_DelObserver(Ucs_Rm_EndPoint_t * ep_ptr, CObserver * obs_ptr);
extern Ucs_Return_t Epm_SetBuildProcess(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern Ucs_Return_t Epm_SetDestroyProcess(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern uint16_t Epm_GetConnectionLabel(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern void Epm_SetConnectionLabel(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr, uint16_t conn_label);
extern Ucs_Rm_EndPointState_t Epm_GetState(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern void Epm_ResetState(CEndpointManagement * self, Ucs_Rm_EndPoint_t * ep_ptr);
extern void Epm_ReportShutDown(CEndpointManagement * self);
extern void Epm_ReportInvalidDevice(CEndpointManagement *self, uint16_t destination_address);
extern void Epm_XrmResDebugCb(Ucs_Xrm_ResourceType_t resource_type, Ucs_Xrm_ResObject_t *resource_ptr, 
                              Ucs_Xrm_ResourceInfos_t resource_infos, void *endpoint_inst_ptr, void *user_ptr);

#ifdef __cplusplus
}   /* extern "C" */
#endif

#endif /* #ifndef UCS_EPM_H */

/*!
 * @}
 * \endcond
 */

/*------------------------------------------------------------------------------------------------*/
/* End of file                                                                                    */
/*------------------------------------------------------------------------------------------------*/