MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / crc_sum_of_bytes

Function crc_sum_of_bytes

libraries/AP_Math/crc.cpp:659–662  ·  view source on GitHub ↗

sums the bytes in the supplied buffer, returns that sum mod 256 (i.e. shoved into a uint8_t)

Source from the content-addressed store, hash-verified

657// sums the bytes in the supplied buffer, returns that sum mod 256
658// (i.e. shoved into a uint8_t)
659uint8_t crc_sum_of_bytes(const uint8_t *data, uint16_t count)
660{
661 return crc_sum_of_bytes_16(data, count) & 0xFF;
662}

Callers 5

get_readingMethod · 0.85
update_checksumMethod · 0.85
valid_csumMethod · 0.85
update_receiveMethod · 0.85
packet_for_altMethod · 0.85

Calls 1

crc_sum_of_bytes_16Function · 0.85

Tested by

no test coverage detected