PROFINET Device4.1.1
 
Loading...
Searching...
No Matches

◆ PN_API_IOD_cbIscoh_t

typedef void(* PN_API_IOD_cbIscoh_t) (void)

Callback function prototype to handle an isochronous interrupt event (typically Ti/To).

If isochronous event interrupts are activated using PN_API_IOD_activateIsoIsrObj(), the stack will call this function when the configured isochronous event occurs. The application has to implement it based on the end user needs.

Example
#include "pn_api_iod_callbacks.h"
#include "pn_api_iod_isoch.h"
#include "pn_api_iod_startup.h"
//Implement the callback function in the user application
void PN_APP_IOD_cbIscoh(void)
{...}
PN_API_IOD_Handle_t* pnHandle = NULL;
uint32_t status;
pnHandle = PN_API_IOD_new();
//Activate an isochronous event (typically for Ti/To) using PN_API_IOD_activateIsoIsrObj()
PN_API_IOD_Handle_t * PN_API_IOD_new(void)
Creates Profinet API handle.
struct PN_API_IOD_Handle PN_API_IOD_Handle_t
API handle instance which holds IO device's info.
Definition pn_api_iod_types.h:61