This file is part of the CAN library; it contains the implementation of the CAN frame functions.
More...
|
static uint_least16_t | can_crc_bits (uint_least16_t crc, uint_least8_t byte, int off, int bits) |
| Computes a bitwise CRC-15-CAN checksum of a single byte. More...
|
|
static uint_least16_t | can_crc_bytes (uint_least16_t crc, const unsigned char *bp, size_t n) |
| Computes a CRC-15-CAN checksum. More...
|
|
int | can_msg_bits (const struct can_msg *msg, enum can_msg_bits_mode mode) |
| Computes the size (in bits) of the specified CAN format frame on the CAN bus. More...
|
|
int | snprintf_can_msg (char *s, size_t n, const struct can_msg *msg) |
| Prints the contents of a CAN or CAN FD format frame to a string buffer. More...
|
|
int | asprintf_can_msg (char **ps, const struct can_msg *msg) |
| Equivalent to snprintf_can_msg(), except that it allocates a string large enough to hold the output, including the terminating null byte. More...
|
|
uint_least16_t | can_crc (uint_least16_t crc, const void *ptr, int off, size_t bits) |
| Computes a bitwise CRC-15-CAN checksum, based on the 0x4599 generator polynomial. More...
|
|
This file is part of the CAN library; it contains the implementation of the CAN frame functions.
- See also
- lely/can/msg.h
- Copyright
- 2015-2020 Lely Industries N.V.
- Author
- J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com
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
http://www.apache.org/licenses/LICENSE-2.0
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 msg.c.