/**
* Return the current mode.
*/
- command msp430usci_mode_t getMode();
+ command msp430_usci_mode_t getMode();
/**
* Prepare to set the mode. If the device supports the requested mode, its
*
* @return The pointer to the device's UCxxCTL0 register.
*/
- command uint8_t* ptrCtl0();
+ command volatile uint8_t* ptrCtl0();
/**
* Get bits from the UCxxCTL0 register associated with the USCI device.
* Manipulate bits in the UCxxCTL1 register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrCtl1(uint8_t mask);
+ command volatile uint8_t* ptrCtl1();
command uint8_t getCtl1(uint8_t mask);
command void setCtl1(uint8_t mask);
command void clrCtl1(uint8_t mask);
* Manipulate bits in the UCxxBR0 register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrBr0(uint8_t mask);
+ command volatile uint8_t* ptrBr0();
command uint8_t getBr0(uint8_t mask);
command void setBr0(uint8_t mask);
command void clrBr0(uint8_t mask);
* Manipulate bits in the UCxxBR1 register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrBr1(uint8_t mask);
+ command volatile uint8_t* ptrBr1();
command uint8_t getBr1(uint8_t mask);
command void setBr1(uint8_t mask);
command void clrBr1(uint8_t mask);
* UCxxCTL0 for more information. These methods perform no operation on
* providers implementing a USCI_Bx device.
*/
- command uint8_t* ptrMctl(uint8_t mask);
+ command volatile uint8_t* ptrMctl();
command uint8_t getMctl(uint8_t mask);
command void setMctl(uint8_t mask);
command void clrMctl(uint8_t mask);
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Ax device.
*/
- command uint8_t* ptrI2Cie(uint8_t mask);
+ command volatile uint8_t* ptrI2Cie();
command uint8_t getI2Cie(uint8_t mask);
command void setI2Cie(uint8_t mask);
command void clrI2Cie(uint8_t mask);
* Manipulate bits in the UCxxSTAT register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrStat(uint8_t mask);
+ command volatile uint8_t* ptrStat();
command uint8_t getStat(uint8_t mask);
command void setStat(uint8_t mask);
command void clrStat(uint8_t mask);
/**
* Return pointer to the UCAxxRXBUF register used by the USCI device.
*/
- command uint8_t* ptrRxbuf();
+ command volatile uint8_t* ptrRxbuf();
/**
* Read the contents of the UCAxxRXBUF register. This register cannot be
/**
* Return pointer to the UCAxxTXBUF register used by the USCI device.
*/
- command uint8_t* ptrTxbuf();
+ command volatile uint8_t* ptrTxbuf();
/**
* Read the contents of the UCAxxTXBUF register.
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Bx device.
*/
- command uint8_t* ptrAbctl(uint8_t mask);
+ command volatile uint8_t* ptrAbctl();
command uint8_t getAbctl(uint8_t mask);
command void setAbctl(uint8_t mask);
command void clrAbctl(uint8_t mask);
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Bx device.
*/
- command uint8_t* ptrIrtctl(uint8_t mask);
+ command volatile uint8_t* ptrIrtctl();
command uint8_t getIrtctl(uint8_t mask);
command void setIrtctl(uint8_t mask);
command void clrIrtctl(uint8_t mask);
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Bx device.
*/
- command uint8_t* ptrIrrctl(uint8_t mask);
+ command volatile uint8_t* ptrIrrctl();
command uint8_t getIrrctl(uint8_t mask);
command void setIrrctl(uint8_t mask);
command void clrIrrctl(uint8_t mask);
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Ax device.
*/
- command uint8_t* ptrI2Coa(uint8_t mask);
+ command volatile uint8_t* ptrI2Coa();
command uint8_t getI2Coa(uint8_t mask);
command void setI2Coa(uint8_t mask);
command void clrI2Coa(uint8_t mask);
* manipulate UCxxCTL0 for more information. These methods perform no
* operation on providers implementing a USCI_Ax device.
*/
- command uint8_t* ptrI2Csa(uint8_t mask);
+ command volatile uint8_t* ptrI2Csa();
command uint8_t getI2Csa(uint8_t mask);
command void setI2Csa(uint8_t mask);
command void clrI2Csa(uint8_t mask);
* Manipulate bits in the UCxxIE register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrIe(uint8_t mask);
- command uint8_t getIe(uint8_t mask);
- command void setIe(uint8_t mask);
- command void clrIe(uint8_t mask);
- command void assignIe(uint8_t mask, uint8_t value);
+ command bool getIeRx();
+ command void setIeRx();
+ command void clrIeRx();
+ command bool getIeTx();
+ command void setIeTx();
+ command void clrIeTx();
/**
* Manipulate bits in the UCxxIFG register. See the methods that manipulate
* UCxxCTL0 for more information.
*/
- command uint8_t* ptrIfg(uint8_t mask);
- command uint8_t getIfg(uint8_t mask);
- command void setIfg(uint8_t mask);
- command void clrIfg(uint8_t mask);
- command void assignIfg(uint8_t mask, uint8_t value);
+ command bool getIfgRx();
+ command void setIfgRx();
+ command void clrIfgRx();
+ command bool getIfgTx();
+ command void setIfgTx();
+ command void clrIfgTx();
+
}