EtherCAT Slave  1.06.01
ESL_cia402Demo.h

CiA 402 Callbacks Example

Author
KUNBUS GmbH
Date
2020-06-19

Copyright (c) 2020, Kunbus GmbH All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#if !(defined __ESL_CIA402DEMO_H__)
#define __ESL_CIA402DEMO_H__ 1
#include <ecSlvApi.h>
#include <ecApiError.h>
#include <ecApiDef.h>
#include <stdint.h>
#if (defined __cplusplus)
extern "C" {
#endif
extern EC_API_SLV_EUserRetCodes_t EC_SLV_APP_startInputHandler(void* ctxt, uint16_t* pIntMask);
extern void EC_SLV_APP_setObdValues(void* ctxt);
extern void EC_SLV_APP_cia402Application(void* ctxt);
extern void EC_SLV_APP_cia402LocalError(void* ctxt, uint16_t ErrorCode);
extern uint32_t EC_SLV_APP_getCiA402ObjectEntryValue(void* pAppCtxt_p, EC_API_SLV_SCoE_ObjEntry_t* pObjectEntry_p,
uint16_t length_p, uint16_t* pValue_p);
#if (defined __cplusplus)
}
#endif
#endif /* __ESL_CIA402DEMO_H__ */
EC_API_SLV_EUserRetCodes_t
enum EC_API_SLV_EUserRetCodeserRetCodes EC_API_SLV_EUserRetCodes_t
EC_RETCODE_T Error codes used during EtherCAT State Machine transitions.
EC_SLV_APP_getCiA402ObjectEntryValue
uint32_t EC_SLV_APP_getCiA402ObjectEntryValue(void *pAppCtxt_p, EC_API_SLV_SCoE_ObjEntry_t *pObjectEntry_p, uint16_t length_p, uint16_t *pValue_p)
Read CiA402 Object entry.
Definition: ESL_cia402Demo.c:296
EC_API_SLV_SCoE_ObjEntry_t
struct EC_API_SLV_SCoE_ObjEntry EC_API_SLV_SCoE_ObjEntry_t
TSdoEntry describes an OBD Object Entry.
Definition: ecSlvApi.h:129
EC_SLV_APP_setObdValues
void EC_SLV_APP_setObdValues(void *ctxt)
Set default values for CiA 402 object dictionary.
Definition: ESL_cia402Demo.c:443
EC_SLV_APP_cia402Application
void EC_SLV_APP_cia402Application(void *ctxt)
CiA402 Application function.
Definition: ESL_cia402Demo.c:871
EC_SLV_APP_startInputHandler
EC_API_SLV_EUserRetCodes_t EC_SLV_APP_startInputHandler(void *ctxt, uint16_t *pIntMask)
Get cycle time information.
Definition: ESL_cia402Demo.c:247
EC_SLV_APP_cia402LocalError
void EC_SLV_APP_cia402LocalError(void *ctxt, uint16_t ErrorCode)
Local Error function handler.
Definition: ESL_cia402Demo.c:631