Synergy Software Package User's Manual

#include <r_ptpedmac_api.h>

Data Fields

ssp_err_t(* open )(ptpedmac_ctrl_t *const p_ctrl, ptpedmac_cfg_t const *const p_cfg)
 
ssp_err_t(* linkProcess )(ptpedmac_ctrl_t *const p_api_ctrl)
 
ssp_err_t(* linkCheck )(ptpedmac_ctrl_t *const p_ctrl)
 
ssp_err_t(* read )(ptpedmac_ctrl_t *const p_ctrl, uint32_t *p_channel, void *const p_buffer, int32_t *p_num_received)
 
ssp_err_t(* close )(ptpedmac_ctrl_t *const p_ctrl)
 
ssp_err_t(* versionGet )(ssp_version_t *const p_version)
 

Detailed Description

PTPEDMAC functions implemented at the HAL layer will follow this API.

Field Documentation

◆ close

ssp_err_t(* ptpedmac_api_t::close) (ptpedmac_ctrl_t *const p_ctrl)

Close the PTPEDMAC driver module.

Implemented as
Parameters
[in]p_ctrlPointer to the control structure

◆ linkCheck

ssp_err_t(* ptpedmac_api_t::linkCheck) (ptpedmac_ctrl_t *const p_ctrl)

Checks host interface communication status

Implemented as
Parameters
[in]p_ctrlPointer to the control structure

◆ linkProcess

ssp_err_t(* ptpedmac_api_t::linkProcess) (ptpedmac_ctrl_t *const p_api_ctrl)

Sets host interface to transfer PTP messages

Implemented as
Parameters
[in]p_ctrlPointer to the control structure

◆ open

ssp_err_t(* ptpedmac_api_t::open) (ptpedmac_ctrl_t *const p_ctrl, ptpedmac_cfg_t const *const p_cfg)

Open the PTPEDMAC driver module for reception of PTP messages.

Implemented as
Parameters
[in]p_ctrlPointer to the control structure
[in]p_cfgPointer to configuration structure

◆ read

ssp_err_t(* ptpedmac_api_t::read) (ptpedmac_ctrl_t *const p_ctrl, uint32_t *p_channel, void *const p_buffer, int32_t *p_num_received)

Receives PTP message

Implemented as
Parameters
[in]p_ctrlPointer to the control structure
[out]p_channelPointer to received channel
[out]p_bufferPointer to received data buffer
[out]p_num_receivedPointer to number of received data

◆ versionGet

ssp_err_t(* ptpedmac_api_t::versionGet) (ssp_version_t *const p_version)

Get the driver version based on compile time macros.

Implemented as
Parameters
[out]p_versionCode and API version used.

The documentation for this struct was generated from the following file: