Changeset 782
- Timestamp:
- 08/05/08 21:34:59 (4 months ago)
- Files:
-
- 1 modified
-
firmware/trunk/libraries/appled/appled.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
firmware/trunk/libraries/appled/appled.c
r771 r782 63 63 64 64 /** 65 Attempts to gain access to the I/O lines associated the given LED.65 Enable an LED in the AppLed subsystem. 66 66 @param index An integer specifying which LED (0-3). 67 67 @param state An integer specifying locked/active (1) or unlocked/inactive (0). 68 68 @return Zero on success. 69 70 \b Example 71 \code 72 // enable LED 0 73 AppLed_SetActive(0, 1); 74 \endcode 69 75 */ 70 76 int AppLed_SetActive( int index, int state ) … … 80 86 81 87 /** 82 Re turns whether the I/O lines associated with the LED are available.88 Read whether an AppLed is enabled. 83 89 @param index An integer specifying which LED (0-3). 84 90 @return Zero if available, otherwise non-zero. 91 92 \b Example 93 \code 94 if(AppLed_GetActive(1)) 95 { 96 // LED 1 is enabled 97 } 98 else 99 { 100 // LED 1 is not enabled 101 } 102 \endcode 85 103 */ 86 104 int AppLed_GetActive( int index ) … … 92 110 93 111 /** 94 Control an LED on the Application Board.112 Turn an LED on or off. 95 113 Sets whether the specified LED on the Application Board is on or off. 96 114 @param index an integer specifying which LED (0-3). … … 98 116 @return Zero on success, otherwise error code. 99 117 100 \ parExample118 \b Example 101 119 \code 102 120 // turn on LED 2 … … 128 146 129 147 /** 130 Read the state of an LED on the Application Board.148 Read whether an LED is on or off. 131 149 @param index An integer specifying which LED (0-3). 132 150 @return the LED state, or zero on error. 151 152 \b Example 153 \code 154 if(AppLed_GetState(2)) 155 { 156 // LED 2 is currently on 157 } 158 else 159 { 160 // LED 2 is currently off 161 } 162 \endcode 133 163 */ 134 164 int AppLed_GetState( int index )
