Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. uart_send(" DYNPD - Enable dynamic payload lengths for six pipes (address 0x");
  2. uart_send_hex(DYNPD);
  3. uart_send("; current value 0x");
  4. reg = nrf_getreg(DYNPD);
  5. uart_send_hex(reg);
  6. uart_sendl(")");
  7.  
  8. uart_send(" DPL_P0: ");
  9. uart_sendl(reg & 1<<DPL_P0 ? 1 : 0);
  10. uart_send(" DPL_P1: ");
  11. uart_sendl(reg & 1<<DPL_P1 ? 1 : 0);
  12. uart_send(" DPL_P2: ");
  13. uart_sendl(reg & 1<<DPL_P2 ? 1 : 0);
  14. uart_send(" DPL_P3: ");
  15. uart_sendl(reg & 1<<DPL_P3 ? 1 : 0);
  16. uart_send(" DPL_P4: ");
  17. uart_sendl(reg & 1<<DPL_P4 ? 1 : 0);
  18. uart_send(" DPL_P5: ");
  19. uart_sendl(reg & 1<<DPL_P5 ? 1 : 0);
  20. uart_sendl("");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement