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) 412 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 seed
Definition: CRC.h:432
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.
CRC_Polynomial
Definition: CRC.h:352
uint32_t timeout
Definition: CRC.h:426
void CRC_Params_init(CRC_Params *params)
Function to initialize the CRC_Params struct to its defaults.
CRC_ReturnBehavior
The way in which CRC function calls return after completing.
Definition: CRC.h:329
void * custom
Definition: CRC.h:428
uint32_t finalXorValue
Definition: CRC.h:455
void CRC_init(void)
This function initializes the CRC module.
CRC_ByteSwap
These byte swapping configurations are primarily for dealing with endianness mismatch. Not all implementations support all configurations.
Definition: CRC.h:384
void CRC_close(CRC_Handle handle)
Function to close a CRC peripheral specified by the CRC handle.
uint8_t reverseInputBits
Definition: CRC.h:449
CRC_DataSize dataSize
Definition: CRC.h:443
CRC_Handle CRC_open(uint_least8_t index, const CRC_Params *params)
This function opens a given CRC peripheral.
CRC_DataSize
The CRC driver will consume data in blocks of this size. Not all implementations support all sizes...
Definition: CRC.h:395
void const * hwAttrs
Definition: CRC.h:309
CRC_Polynomial polynomial
Definition: CRC.h:435
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:412
const CRC_Params CRC_defaultParams
Default CRC_Params structure.
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:418
CRC_ReturnBehavior returnBehavior
Definition: CRC.h:420
CRC_ByteSwap byteSwapInput
Definition: CRC.h:446
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_Config * CRC_Handle
A handle that is returned from an CRC_open() call.
Definition: CRC.h:315
uint32_t programmablePoly
Definition: CRC.h:437
uint8_t invertOutputBits
Definition: CRC.h:451
uint8_t reverseOutputBits
Definition: CRC.h:453
void * object
Definition: CRC.h:308
uint32_t programmablePolyOrder
Definition: CRC.h:439
CRC_CallbackFxn callbackFxn
Definition: CRC.h:422
CRC Global configuration.
Definition: CRC.h:307