Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Write to registry on chip
- Serial.print("frequency: ");
- Serial.println(frequency);
- // frequency: 1422114
- /* 0x07 */ {REG_FRFMSB, (uint8_t)(frequency >> 16)},
- /* 0x08 */ {REG_FRFMID, (uint8_t)(frequency >> 8)},
- /* 0x09 */ {REG_FRFLSB, (uint8_t)(frequency)},
- ## Read from registry on chip
- frequency = (
- ((uint32_t)readReg(REG_FRFMSB) << 16) +
- ((uint16_t)readReg(REG_FRFMID) << 8) +
- (uint8_t)readReg(REG_FRFLSB)
- )
- Serial.print("frequency: ");
- Serial.println(frequency);
- // frequency: 16777215
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement