Synergy Software Package User's Manual

#include <r_crc_api.h>

Data Fields

ssp_err_t(* open )(crc_ctrl_t *const p_ctrl, crc_cfg_t const *const p_cfg)
 
ssp_err_t(* close )(crc_ctrl_t *const p_ctrl)
 
ssp_err_t(* crcResultGet )(crc_ctrl_t *const p_ctrl, uint32_t *crc_result)
 
ssp_err_t(* snoopEnable )(crc_ctrl_t *const p_ctrl, uint32_t crc_seed)
 
ssp_err_t(* snoopDisable )(crc_ctrl_t *const p_ctrl)
 
ssp_err_t(* snoopCfg )(crc_ctrl_t *const p_ctrl, crc_snoop_cfg_t *const p_snoop_cfg)
 
ssp_err_t(* calculate )(crc_ctrl_t *const p_ctrl, void *p_input_buffer, uint32_t num_bytes, uint32_t crc_seed, uint32_t *p_crc_result)
 
ssp_err_t(* versionGet )(ssp_version_t *version)
 

Detailed Description

CRC driver structure. General CRC functions implemented at the HAL layer will follow this API.

Field Documentation

◆ calculate

ssp_err_t(* crc_api_t::calculate) (crc_ctrl_t *const p_ctrl, void *p_input_buffer, uint32_t num_bytes, uint32_t crc_seed, uint32_t *p_crc_result)

Perform a CRC calculation on a block of data.

Implemented as
Parameters
[in]p_ctrlPointer to crc device handle.
[in]input_bufferA pointer to an array of data values.
[in]num_bytesThe number of bytes (not elements) in the array.
[in]crc_seedThe seeded value for crc calculations.
[out]crc_resultThe calculated value of the CRC calculation.

◆ close

ssp_err_t(* crc_api_t::close) (crc_ctrl_t *const p_ctrl)

Close the CRC module driver

Implemented as
Parameters
[in]p_ctrlPointer to crc device handle
Return values
SSP_SUCCESSConfiguration was successful.

◆ crcResultGet

ssp_err_t(* crc_api_t::crcResultGet) (crc_ctrl_t *const p_ctrl, uint32_t *crc_result)

Return the current calculated value.

Implemented as
Parameters
[in]p_ctrlPointer to CRC device handle.
[out]crc_resultThe calculated value from the last CRC calculation.

◆ open

ssp_err_t(* crc_api_t::open) (crc_ctrl_t *const p_ctrl, crc_cfg_t const *const p_cfg)

Open the CRC driver module.

Implemented as
Parameters
[in]p_ctrlPointer to CRC device handle.
[in]p_cfgPointer to a configuration structure.

◆ snoopCfg

ssp_err_t(* crc_api_t::snoopCfg) (crc_ctrl_t *const p_ctrl, crc_snoop_cfg_t *const p_snoop_cfg)

Configure the snoop channel and direction.

Implemented as
Parameters
[in]p_ctrlPointer to crc device handle.
[in]p_snoopCfgSnoop configuration.

◆ snoopDisable

ssp_err_t(* crc_api_t::snoopDisable) (crc_ctrl_t *const p_ctrl)

Disable snooping.

Implemented as
Parameters
[in]p_ctrlPointer to crc device handle.

◆ snoopEnable

ssp_err_t(* crc_api_t::snoopEnable) (crc_ctrl_t *const p_ctrl, uint32_t crc_seed)

Enable snooping.

Implemented as
Parameters
[in]p_ctrlPointer to CRC device handle.
[in]crc_seedCRC seed.

◆ versionGet

ssp_err_t(* crc_api_t::versionGet) (ssp_version_t *version)

Get the driver version based on compile time macros.

Implemented as

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