![]() |
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) |
CRC driver structure. General CRC functions implemented at the HAL layer will follow this API.
| 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.
| [in] | p_ctrl | Pointer to crc device handle. |
| [in] | input_buffer | A pointer to an array of data values. |
| [in] | num_bytes | The number of bytes (not elements) in the array. |
| [in] | crc_seed | The seeded value for crc calculations. |
| [out] | crc_result | The calculated value of the CRC calculation. |
| ssp_err_t(* crc_api_t::close) (crc_ctrl_t *const p_ctrl) |
Close the CRC module driver
| [in] | p_ctrl | Pointer to crc device handle |
| SSP_SUCCESS | Configuration was successful. |
| ssp_err_t(* crc_api_t::crcResultGet) (crc_ctrl_t *const p_ctrl, uint32_t *crc_result) |
Return the current calculated value.
| [in] | p_ctrl | Pointer to CRC device handle. |
| [out] | crc_result | The calculated value from the last CRC calculation. |
| 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.
| [in] | p_ctrl | Pointer to CRC device handle. |
| [in] | p_cfg | Pointer to a configuration structure. |
| 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.
| [in] | p_ctrl | Pointer to crc device handle. |
| [in] | p_snoopCfg | Snoop configuration. |
| ssp_err_t(* crc_api_t::snoopDisable) (crc_ctrl_t *const p_ctrl) |
Disable snooping.
| [in] | p_ctrl | Pointer to crc device handle. |
| ssp_err_t(* crc_api_t::snoopEnable) (crc_ctrl_t *const p_ctrl, uint32_t crc_seed) |
Enable snooping.
| [in] | p_ctrl | Pointer to CRC device handle. |
| [in] | crc_seed | CRC seed. |
| ssp_err_t(* crc_api_t::versionGet) (ssp_version_t *version) |
Get the driver version based on compile time macros.