268 #ifndef ti_drivers_CRC__include 269 #define ti_drivers_CRC__include 279 #define CRC_STATUS_RESERVED (-32) 282 #define CRC_STATUS_SUCCESS (0) 285 #define CRC_STATUS_ERROR (-1) 288 #define CRC_STATUS_RESOURCE_UNAVAILABLE (-2) 291 #define CRC_STATUS_OPERATION_NOT_SUPPORTED (-3) 294 #define CRC_STATUS_LEFTOVER_BYTES_PRESENT (-4) 396 typedef void (*
CRC_CallbackFxn) (CRC_Handle handle, int_fast16_t status,
void *result);
542 extern int_fast16_t
CRC_calculateFull(CRC_Handle handle,
const void *source,
size_t sourceBytes,
void *result);
567 extern int_fast16_t
CRC_addData(CRC_Handle handle,
const void *source,
size_t sourceBytes);
587 extern void CRC_finalize(CRC_Handle handle,
void *result);
600 extern void CRC_reset(CRC_Handle handle);
611 extern void CRC_close(CRC_Handle handle);
uint32_t programmablePoly
Definition: CRC.h:421
void CRC_finalize(CRC_Handle handle, void *result)
Completes the CRC calculation and places the final CRC into result.
int_fast16_t CRC_addData(CRC_Handle handle, const void *source, size_t sourceBytes)
Performs the CRC of the provided bytes. Waits for HW access.
uint32_t finalXorValue
Definition: CRC.h:439
CRC_ByteSwap byteSwapInput
Definition: CRC.h:430
CRC_DataSize_
The CRC driver will consume data in blocks of this size. Not all implementations support all sizes...
Definition: CRC.h:379
struct CRC_Params_ CRC_Params
Struct containing the parameters required for calculating the CRC of a data block. Default values can be set with CRC_Params_init.
void CRC_Params_init(CRC_Params *params)
Function to initialize the CRC_Params struct to its defaults.
void * custom
Definition: CRC.h:412
CRC_ByteSwap_
These byte swapping configurations are primarily for dealing with endianness mismatch. Not all implementations support all configurations.
Definition: CRC.h:368
void * object
Definition: CRC.h:454
struct CRC_Config_ * CRC_Handle
A handle that is returned from an CRC_open() call.
Definition: CRC.h:299
uint8_t reverseInputBits
Definition: CRC.h:433
void CRC_init(void)
This function initializes the CRC module.
uint8_t reverseOutputBits
Definition: CRC.h:437
uint32_t seed
Definition: CRC.h:416
void CRC_close(CRC_Handle handle)
Function to close a CRC peripheral specified by the CRC handle.
CRC_Polynomial polynomial
Definition: CRC.h:419
CRC_Handle CRC_open(uint_least8_t index, const CRC_Params *params)
This function opens a given CRC peripheral.
uint8_t invertOutputBits
Definition: CRC.h:435
uint32_t programmablePolyOrder
Definition: CRC.h:423
CRC_DataSize dataSize
Definition: CRC.h:427
void(* CRC_CallbackFxn)(CRC_Handle handle, int_fast16_t status, void *result)
The definition of a callback function used by the CRC driver when used in CALLBACK mode...
Definition: CRC.h:396
Struct containing the parameters required for calculating the CRC of a data block. Default values can be set with CRC_Params_init.
Definition: CRC.h:402
const CRC_Params CRC_defaultParams
Default CRC_Params structure.
CRC_CallbackFxn callbackFxn
Definition: CRC.h:406
enum CRC_Polynomial_ CRC_Polynomial
void const * hwAttrs
Definition: CRC.h:455
CRC_ReturnBehavior returnBehavior
Definition: CRC.h:404
enum CRC_DataSize_ CRC_DataSize
The CRC driver will consume data in blocks of this size. Not all implementations support all sizes...
enum CRC_ReturnBehavior_ CRC_ReturnBehavior
The way in which CRC function calls return after completing.
CRC_ReturnBehavior_
The way in which CRC function calls return after completing.
Definition: CRC.h:313
enum CRC_ByteSwap_ CRC_ByteSwap
These byte swapping configurations are primarily for dealing with endianness mismatch. Not all implementations support all configurations.
struct CRC_Config_ CRC_Config
CRC Global configuration.
void CRC_reset(CRC_Handle handle)
Clears any intermediate results such that the next addData call will begin a new CRC.
int_fast16_t CRC_calculateFull(CRC_Handle handle, const void *source, size_t sourceBytes, void *result)
Performs the CRC of the provided bytes, placing the final CRC into result. Waits for HW access...
CRC_Polynomial_
Definition: CRC.h:336
CRC Global configuration.
Definition: CRC.h:453
uint32_t timeout
Definition: CRC.h:410