https://developer.mbed.org/users/mistery/code/SX1276Lib/#5bdc3d7475c3