|
Defines |
|
#define | MAXIMUM_PARITY_BYTES 64 |
| | Maximum allowed number of parity bytes.
|
|
#define | MAXIMUM_IMPLEMENTED_PARITY_BYTES 8 |
|
#define | FEC_NO_ERRORS 0 |
| | Return value if fec_decode detects no errors.
|
|
#define | FEC_CORRECTED_ERRORS 1 |
| | Return value if fec_decode is able to fix all errors.
|
|
#define | FEC_UNCORRECTABLE_ERRORS 2 |
| | Return value if fec_decode cannot fix all errors.
|
Functions |
| void | fec_init (uint8_t parity_bytes) |
| | Initalize the fec subsystem to the specified number of parity bytes.
|
| uint8_t | fec_get_parity_bytes () |
| | Return the number of parity bytes the FEC subsystem is currently using.
|
| void | fec_encode (uint8_t *src, uint8_t len, uint8_t *parity_ptr) |
| | Encode the parity bytes for a portion of memory.
|
| uint8_t | fec_decode (uint8_t *src, uint8_t len, uint8_t *fec_ptr) |
| | Use FEC to correct errors if possible.
|