| RT-AICHIP-sample
    | 
LED,SW,電源電圧の監視等の機能の実装 
  
[詳解]
#include "LPC13xx.h"#include "core_cm3.h"#include "timer.h"#include "type.h"#include "pwm.h"#include "UserInterface.h"#include "ad.h"
| 関数 | |
| void | initUI (void) | 
| uint8_t | getStateLeftSW (void) | 
| uint8_t | getStateRightSW (void) | 
| uint16_t | getLeftSWcount (void) | 
| uint16_t | getRightSWcount (void) | 
| uint32_t | getElapsedTime (void) | 
| void | resetElapsedTime (void) | 
| void | turnRedLED (uint8_t state) | 
| void | turnGreenLED (uint8_t state) | 
| void | flashGreenLED (uint16_t on_count, uint16_t off_count) | 
| void | flashRedLED (uint16_t on_count, uint16_t off_count) | 
| float | getLipoVoltage (void) | 
| float | getMotorVoltage (void) | 
| void | TIMER32_0_IRQHandler (void) | 
| void | debugUI (void) | 
LED,SW,電源電圧の監視等の機能の実装 
 
UserInterface.c に定義があります。
| void debugUI | ( | void | ) | 
| uint32_t getElapsedTime | ( | void | ) | 
| uint16_t getLeftSWcount | ( | void | ) | 
| float getLipoVoltage | ( | void | ) | 
| float getMotorVoltage | ( | void | ) | 
| uint16_t getRightSWcount | ( | void | ) | 
| uint8_t getStateLeftSW | ( | void | ) | 
| uint8_t getStateRightSW | ( | void | ) | 
| void initUI | ( | void | ) | 
LEDの点滅, AD変換でのバッテリーの電圧取得, スイッチの押下状態の監視
 機能の初期化 
 この関数は各ペリフェラルの初期化後に呼ぶこと 
この関数を呼ぶと 
 
が有効となる.
| void | 
UserInterface.c の 58 行目に定義があります。


| void resetElapsedTime | ( | void | ) | 
| void TIMER32_0_IRQHandler | ( | void | ) | 
| void turnGreenLED | ( | uint8_t | state | ) | 
| void turnRedLED | ( | uint8_t | state | ) |