![]()  | 
  
    SDK
    23.9.2
    
   For IoT System Software Development 
   | 
 
TI MSP430F5438A를 제어하기 위한 클래스 More...
#include <System.hpp>
  
Public Member Functions | |
| int16_t | getSupplyVoltage () | 
| 공급전압을 읽습니다. (단위: mV)  | |
  Public Member Functions inherited from McuMSP430x5 | |
| McuMSP430x5 (uint32_t clockHz) | |
| void | feedWatchdog () override | 
| Watchdog reset을 방지하기 위하여 watchdog에 신호를 줍니다.  More... | |
| uint16_t | getSystickCount () | 
| void | waitSystick (uint16_t startCycle, uint16_t numCycle) | 
| uint32_t | MicrosToSystick (uint32_t usec) override | 
| uint32_t | SystickToMicros (uint32_t ticks) override | 
| void | getTimeSinceBoot (struct timeval *tv) override | 
| 보드 부팅 이후부터 현재까지의 경과 시간을 구합니다.  More... | |
| uint8_t | getResetReason () | 
| 마지막으로 리셋된 원인을 가져옵니다.  More... | |
  Public Member Functions inherited from McuGeneric | |
| McuGeneric (uint32_t clockHz, uint32_t systickHz, uint32_t maxSystickCount) | |
  Public Member Functions inherited from RTCCalendar | |
| void | getDateTime (struct tm &t) | 
| 현재 로컬 시간을 가져옵니다.  More... | |
| time_t | getDateTime () | 
| 현재 로컬 시간을 가져옵니다.  More... | |
| void | getUTC (struct tm &t) | 
| 현재 UTC 시간을 가져옵니다.  More... | |
| time_t | getUTC () | 
| 현재 UTC 시간을 가져옵니다.  More... | |
| void | setDateTime (struct tm &t) | 
| 현재 로컬 시간을 설정합니다.  More... | |
| void | setDateTime (time_t t) | 
| 현재 로컬 시간을 설정합니다.  More... | |
| void | setUTC (struct tm &t) | 
| 현재 UTC 시간을 설정합니다.  More... | |
| void | setUTC (time_t t) | 
| 현재 UTC 시간을 설정합니다.  More... | |
| void | setDateTimeAlarm (struct tm &t) | 
| 현재 로컬 시간을 기준으로 알람을 설정합니다.  More... | |
| void | setDateTimeAlarm (time_t t) | 
| 현재 로컬 시간을 기준으로 알람을 설정합니다.  More... | |
| error_t | setTimeAlarm (uint8_t hour, uint8_t min, uint8_t sec=0) | 
| 현재 로컬 시간을 기준으로 알람을 설정합니다.  More... | |
| void | onDateTimeAlarm (void(*func)()) | 
| 알람 발생시 호출될 콜백함수를 지정합니다.  More... | |
| void | setTimeDiff (int16_t diffMinutes) | 
| UTC와 로컬 시간과의 차이를 분 단위로 지정합니다.  More... | |
| int16_t | getTimeDiff () | 
| UTC와 로컬 시간과의 차이를 반환합니다.  More... | |
| virtual void | signalAlarm () | 
  Public Member Functions inherited from StandardPrintable | |
| StandardPrintable (Print *out, Print *err) | |
| StandardPrintable (Print *common) | |
Additional Inherited Members | |
  Public Types inherited from McuMSP430x5 | |
| enum | {  RESET_REASON_BOR = 0x02, RESET_REASON_BOR_RST_NMI = 0x04, RESET_REASON_BOR_PMMSWBOR = 0x06, RESET_REASON_BOR_WAKEUP_FROM_LPMx5 = 0x08, RESET_REASON_BOR_SECURITY_VIOLATION = 0x0A, RESET_REASON_POR_SVSL = 0x0C, RESET_REASON_POR_SVSH = 0x0E, RESET_REASON_POR_SVML_OVP = 0x10, RESET_REASON_POR_SVMH_OVP = 0x12, RESET_REASON_POR_PMMSWPOR = 0x14, RESET_REASON_PUC_WDT_TIMEOUT = 0x16, RESET_REASON_PUC_WDT_PASSWORD_VIOLATION = 0x18, RESET_REASON_PUC_FLASH_PASSWORD_VIOLATION = 0x1A, RESET_REASON_PUC_PERF = 0x1E, RESET_REASON_PUC_PMM_PASSWORD_VIOLATION = 0x20 }  | 
| enum | AdcReference_t {  VREF_INTERNALVCC = 0, VREF_INTERNAL2V5 = 1, VREF_INTERNAL2V = 2, VREF_INTERNAL1V5 = 3, VREF_EXTERNALPos = 4, VREF_INTERNALVCC_EXTERNALNeg = 5, VREF_INTERNAL2V5_EXTERNALNeg = 6, VREF_INTERNAL2V_EXTERNALNeg = 7, VREF_INTERNAL1V5_EXTERNALNeg = 8, VREF_EXTERNALPos_EXTERNALNeg = 9, VREF_DEFAULT = 1, VREF_INTERNAL = 1, VREF_EXTERNAL = 4 }  | 
| ADC (analogRead()) 기준 전압  More... | |
  Public Attributes inherited from McuGeneric | |
| const uint32_t | CLOCK_HZ | 
| CPU clock frequency in unit of Hz.  | |
| const uint32_t | SYSTICK_HZ | 
| System tick frequency in unit of Hz.  | |
| const uint32_t | MAX_SYSTICK_COUNT | 
| Maximum value of systick counter.  | |
| bool | useSleep = true | 
| true 이면 MCU가 유휴(idle) 상태일 때 저전력을 위하여 sleep 합니다.  More... | |
  Public Attributes inherited from StandardPrintable | |
| Print * | out = nullptr | 
| 표준 출력 장치  More... | |
| Print * | err = nullptr | 
| 표준 오류 출력 장치  More... | |
  Protected Member Functions inherited from McuMSP430x5 | |
| void | clockInit () | 
| void | getUTCFromHardware (uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hour, uint8_t *min, uint8_t *sec, uint32_t *subsec=NULL) | 
| void | setUTCToHardware (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec, int32_t subsec=0) | 
| void | setUTCAlarmToHardware (uint8_t hour, uint8_t min, uint8_t sec) | 
  Protected Attributes inherited from McuMSP430x5 | |
| struct timeval | bootTime | 
  Protected Attributes inherited from RTCCalendar | |
| void(* | handlerAlarm )() | 
TI MSP430F5438A를 제어하기 위한 클래스
 1.8.17