Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
openapi_stm.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2022-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ***********************************************************************
26 *
27 * @filename openapi_stm template.h
28 *
29 * @purpose This code implements the OpEN APIs for STM Templates
30 *
31 * @component OPEN
32 *
33 * @create 11/24/2022
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_STM_TEMPLATE_H_INCLUDED
39 #define OPENAPI_STM_TEMPLATE_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 #define OPEN_STM_TEMPLATE_DESCRIPTION_SIZE 80
44 #define OPEN_STM_TEMPLATE_NAME_SIZE 16
45 
46 /*************************************************************************/
61  uint32_t *templateId);
62 
63 /*************************************************************************/
81  uint32_t templateId);
82 
83 /*************************************************************************/
98  uint32_t *firstTemplateId);
99 
100 /*************************************************************************/
116  uint32_t currentTemplateId, uint32_t *nextTemplateId);
117 
118 /*************************************************************************/
135  uint32_t templateId,
136  open_buffdesc *templateName,
137  open_buffdesc *templateDesc);
138 
139 /*************************************************************************/
153 
154 #endif /* OPENAPI_STM TEMPLATE_H_INCLUDED */
155 
open_error_t openapiStmActiveTemplateIdGet(openapiClientHandle_t *client_handle, uint32_t *templateId)
Gets current active Template Id.
open_error_t openapiStmActiveTemplateIdSet(openapiClientHandle_t *client_handle, uint32_t templateId)
Sets active template id.
open_error_t openapiStmTemplateRevertToDefault(openapiClientHandle_t *client_handle)
Sets(Revert to) Default template.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiStmNextTemplateIdGet(openapiClientHandle_t *client_handle, uint32_t currentTemplateId, uint32_t *nextTemplateId)
Get the next valid template ID.
open_error_t openapiStmTemplateNameDescriptionGet(openapiClientHandle_t *client_handle, uint32_t templateId, open_buffdesc *templateName, open_buffdesc *templateDesc)
Gets name and description of specific template id.
open_error_t openapiStmFirstTemplateIdGet(openapiClientHandle_t *client_handle, uint32_t *firstTemplateId)
Get the first valid template ID.