Thanks, that helped me using the nco.
However, I am still struggling with the trf. I can figure out from the datasheet which bits need addressing, however I am lost in the assembling of the data in
trf_write with address, bits I want to change and bits that should remain unchanged (that I would get from
What I would appreciate is a wrapper of the
trf_write function so I can change only certain bits in a given register (0 to 7 similar to
trf_read), while leaving the other bits as they are.
Another function that takes the value from
trf_read(addr) and writes it to the register in case I mess things up would also be nice (I don't think that's very complicated, but I dont' know how to handle negative values I get from
trf_read for some registers).