/*************************************************************************************************** * @fn HalLedInit * * @brief Initialize LED Service * * @param init - pointer to void that contains the initialized value * * @return None ***************************************************************************************************/ voidHalLedInit( void );
/*************************************************************************************************** * @fn HalLedSet * * @brief Tun ON/OFF/TOGGLE given LEDs * * @param led - bit mask value of leds to be turned ON/OFF/TOGGLE * which can be OR of the following values * - \ref HAL_LED_1 * - \ref HAL_LED_2 * - \ref HAL_LED_3 * - \ref HAL_LED_4 * - \ref HAL_LED_ALL * * mode - BLINK, FLASH, TOGGLE, ON, OFF mode * which can be one of the following values * - \ref HAL_LED_MODE_OFF * - \ref HAL_LED_MODE_ON * - \ref HAL_LED_MODE_BLINK * - \ref HAL_LED_MODE_FLASH * - \ref HAL_LED_MODE_TOGGLE * * @return None ***************************************************************************************************/ uint8 HalLedSet( uint8 led, uint8 mode );
/*************************************************************************************************** * @fn HalLedBlink * * @brief Blink the leds * * @param leds - bit mask value of leds to be blinked * which can be OR of the following values * - \ref HAL_LED_1 * - \ref HAL_LED_2 * - \ref HAL_LED_3 * - \ref HAL_LED_4 * - \ref HAL_LED_ALL * numBlinks - number of blinks * percent - the percentage in each period where the led * will be on * period - length of each cycle in milliseconds * * @return None ***************************************************************************************************/ voidHalLedBlink( uint8 leds, uint8 cnt, uint8 duty, uint16 time );
/*************************************************************************************************** * @fn HalLedEnterSleep * * @brief Store current LEDs state before sleep * * @param none * * @return none ***************************************************************************************************/ voidHalLedEnterSleep( void );
/*************************************************************************************************** * @fn HalLedExitSleep * * @brief Restore current LEDs state after sleep * * @param none * * @return none ***************************************************************************************************/ voidHalLedExitSleep( void );
/*************************************************************************************************** * @fn HalGetLedState * * @brief Get LEDs on/off current state. * * @param none * * @return led state ***************************************************************************************************/ uint8 HalLedGetState( void );