An open API service indexing awesome lists of open source software.

https://github.com/fbiego/crc16modbus

CRC16-MODBUS Checksum calculator, Kotlin
https://github.com/fbiego/crc16modbus

android checksum checksum-calculation crc16 kotlin modbus

Last synced: 5 months ago
JSON representation

CRC16-MODBUS Checksum calculator, Kotlin

Awesome Lists containing this project

README

          

# CRC16Modbus

### Usage

val bytes = ByteArray(10)
for (x in 0 until 10){
bytes[9-x] = x.toByte()
}

val crc = CRC16Modbus()
crc.update(bytes)
val checkSum = crc.crcBytes
println(String.format("CheckSum = 0x%02X, 0x%02X", checkSum[0], checkSum[1]))