FCS utilities (3GPP TS 27.010). More...
|uint8_t||FcsCalc (uint32_t len, const uint8_t *pBuf)|
|Calculate the FCS of the given buffer. More...|
|void||FcsAddByte (uint8_t *pFcs, uint8_t byte)|
|Computes resultant CRC by appending one byte. More...|
FCS utilities (3GPP TS 27.010).
Copyright (c) 2010-2017 Arm Ltd. All Rights Reserved.
Copyright (c) 2019 Packetcraft, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file fcs.h.
|void FcsAddByte||(||uint8_t *||pFcs,|
Computes resultant CRC by appending one byte.
|pFcs||CRC value on which to append the byte.|
|byte||Byte to be added to CRC computation.|
|const uint8_t *||pBuf|
Calculate the FCS of the given buffer.
|len||Length of the buffer.|
|pBuf||Buffer to compute the CRC.|