ldoPwr.h
Go to the documentation of this file.
00001 #ifndef __MSP430WARE_PU_H__
00002 #define __MSP430WARE_PU_H__
00003 //*****************************************************************************
00004 //
00005 //The following are the defines to include the required modules for this
00006 //peripheral in msp430xgeneric.h file
00007 //
00008 //*****************************************************************************
00009 #define __MSP430_HAS_PU__
00010 
00011 //*****************************************************************************
00012 //
00013 //The following are values that can be passed to the LDOPWR_enableInterrupt(),
00014 //LDOPWR_disableInterrupt(), LDOPWR_getInterruptStatus(),
00015 //LDOPWR_clearInterruptStatus() API as the mask parameter.
00016 //
00017 //*****************************************************************************
00018 #define LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT     LDOOFFIE_H
00019 #define LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT     LDOONIE_H
00020 #define LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT    LDOOVLIE_H
00021 
00022 //*****************************************************************************
00023 //
00024 //The following are values that can be returned by LDOPWR_LDOInputValid() API
00025 //
00026 //*****************************************************************************
00027 #define LDOPWR_LDO_INPUT_VALID      LDOBGVBV
00028 #define LDOPWR_LDO_INPUT_INVALID    0x00
00029 
00030 //*****************************************************************************
00031 //
00032 //The following are values that can be returned by
00033 //the LDOPWR_getOverloadAutoOffStatus() API
00034 //
00035 //*****************************************************************************
00036 #define LDOPWR_AUTOOFF_ENABLED  OVLAOFF_H
00037 #define LDOPWR_AUTOOFF_DISABLED  0x00
00038 
00039 //*****************************************************************************
00040 //
00041 //The following are values that can be returned by LDOPWR_getPortU1InputData(),
00042 //LDOPWR_getPortU0InputData(), LDOPWR_getPortU1OutputData(),
00043 //LDOPWR_getPortU0OutputData(), LDOPWR_setPortU1OutputData(),
00044 //API and may be passed as value parameter to LDOPWR_setPortU0OutputData(),
00045 //LDOPWR_setPortU1OutputData() API
00046 //
00047 //*****************************************************************************
00048 #define LDOPWR_PORTU_PIN_HIGH  PUOUT0
00049 #define LDOPWR_PORTU_PIN_LOW  0x00
00050 
00051 //*****************************************************************************
00052 //
00053 //Prototypes for the APIs.
00054 //
00055 //*****************************************************************************
00056 extern
00057 void LDOPWR_unLockConfiguration ( unsigned int baseAddress );
00058 extern
00059 void LDOPWR_lockConfiguration ( unsigned int baseAddress );
00060 extern
00061 void LDOPWR_enablePort_U_inputs (unsigned int baseAddress );
00062 extern
00063 void LDOPWR_disablePort_U_inputs (unsigned int baseAddress );
00064 extern
00065 void LDOPWR_enablePort_U_outputs (unsigned int baseAddress );
00066 extern
00067 void LDOPWR_disablePort_U_outputs (unsigned int baseAddress );
00068 extern
00069 unsigned char LDOPWR_getPort_U1_inputData (unsigned int baseAddress );
00070 extern
00071 unsigned char LDOPWR_getPort_U0_inputData (unsigned int baseAddress );
00072 extern
00073 unsigned char LDOPWR_getPort_U1_outputData (unsigned int baseAddress );
00074 extern
00075 unsigned char LDOPWR_getPort_U0_outputData (unsigned int baseAddress );
00076 extern
00077 void LDOPWR_enableInterrupt (unsigned int baseAddress,
00078     unsigned int mask
00079     );
00080 extern
00081 void LDOPWR_disableInterrupt (unsigned int baseAddress,
00082     unsigned int mask
00083     );
00084 extern
00085 void LDOPWR_enable (unsigned int baseAddress);
00086 extern
00087 void LDOPWR_disable (unsigned int baseAddress);
00088 extern
00089 unsigned char LDOPWR_getInterruptStatus (unsigned int baseAddress,
00090     unsigned int mask
00091     );
00092 extern
00093 unsigned char LDOPWR_isLDOInputValid (unsigned int baseAddress);
00094 extern
00095 void LDOPWR_enableOverloadAutoOff (unsigned int baseAddress);
00096 extern
00097 void LDOPWR_disableOverloadAutoOff (unsigned int baseAddress);
00098 extern
00099 unsigned char LDOPWR_getOverloadAutoOffStatus (unsigned int baseAddress);
00100 extern
00101 void LDOPWR_clearInterruptStatus (unsigned int baseAddress,
00102     unsigned int mask
00103     );
00104 extern
00105 void LDOPWR_setPort_U0_outputData (unsigned int baseAddress,
00106     unsigned char value
00107     );
00108 extern
00109 void LDOPWR_togglePort_U1_outputData (unsigned int baseAddress);
00110 extern
00111 void LDOPWR_togglePort_U0_outputData (unsigned int baseAddress);
00112 extern
00113 void LDOPWR_setPort_U1_outputData (unsigned int baseAddress,
00114     unsigned char value
00115     );
00116 #endif

Copyright 2012, Texas Instruments Incorporated