Hi all, I am trying to find the best way to work around a few problems. I am using the New Japan Radio NJW1157B in a project, it is a no brainier volume / matrix/ EQ chip. I want to build more modular code, so to this end I am looking at writing a device driver (Library) for this chip, so I can say things like Master_Volume(1); etc and it would bump the master volume by 1 Smile As this chip works in 16 bit words on SPI, The first byte is a constant for each instruction, I would like to use in my subroutines the assembler equivalent of Master_Volume (low) and (high), with the high byte containing the actual volume for the master Smile Some of these pairs the second pair is more of a 4bit variable and a few bits. Can I access these parts as Master_Volume,8 etc ? Can I assign a new name like Master_Volume.8 = BSW ? What is the best way to describe this so I can just shunt it out the SPI port, also can I send an int to the SPI port and have CVAVR break it into 2 8 bit values, to send and receive back my 2 8 bit variables ? -- Regards, Kat. --------------------------------------------------------------- K.A.Q. Electronics Website: www.kaqelectronics.dyndns.org IM: Yahoo: PinkyDwaggy MSN: katinka@kaqelectronics.dyndns.org For Everything Electronics Phone: 0419 923 731 ---------------------------------------------------------------
Message
Struct ?
2006-06-03 by Kathy Quinlan
Attachments
- No local attachments were found for this message.