BlueNinja BSP  0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
TZ01_system.h ファイル

System library for Cerevo CDP-TZ01B. [詳解]

#include <stdint.h>
#include <stdbool.h>
#include "TZ01_system_conf.h"

[ソースコード]

データ構造

struct  TZ01_SYSTEM_TICK_INFO
 Tick timer information. [詳解]
 
struct  TZ01_SYSTEM_TICK
 Tick timer. [詳解]
 

列挙型

enum  TZ01_system_RUNEVT { RUNEVT_NONE, RUNEVT_LO_VOLT, RUNEVT_POWOFF }
 

関数

bool TZ01_system_init (void)
 Initialize system library. [詳解]
 
TZ01_system_RUNEVT TZ01_system_run (void)
 Running system library. [詳解]
 
bool TZ01_system_tick_clear (void)
 Clear tick timer. [詳解]
 
bool TZ01_system_tick_start (TZ01_SYSTEM_TICK_NO tim_no, uint32_t ms_timeout)
 Start tick timer. [詳解]
 
bool TZ01_system_tick_stop (TZ01_SYSTEM_TICK_NO tim_no)
 Stop tick timer. [詳解]
 
bool TZ01_system_tick_is_active (TZ01_SYSTEM_TICK_NO tim_no)
 Get tick timer activity. [詳解]
 
bool TZ01_system_tick_check_timeout (TZ01_SYSTEM_TICK_NO tim_no)
 Check tick timer timeout. [詳解]
 

詳解

System library for Cerevo CDP-TZ01B.

著者
Cerevo Inc.

列挙型詳解

列挙値
RUNEVT_NONE 

None

RUNEVT_LO_VOLT 

Lo voltage detected.

RUNEVT_POWOFF 

Power off operation detected.

関数詳解

bool TZ01_system_init ( void  )

Initialize system library.

戻り値
Initialize result.
戻り値
true: Success.
falseFailed.

System

DO

DI

TZ01_system_RUNEVT TZ01_system_run ( void  )

Running system library.

戻り値
Running result.
戻り値
Eventthat occurrd.
bool TZ01_system_tick_check_timeout ( TZ01_SYSTEM_TICK_NO  tim_no)

Check tick timer timeout.

引数
tim_noTick timer number.
戻り値
Timeout
戻り値
true: Timeout.
falseNot timeout.
bool TZ01_system_tick_clear ( void  )

Clear tick timer.

戻り値
Clear result
戻り値
true: Success.
falseFailed.

Power switch control functions. Tick timer manage functions.

bool TZ01_system_tick_is_active ( TZ01_SYSTEM_TICK_NO  tim_no)

Get tick timer activity.

引数
[in]tim_noTick timer number.
戻り値
Tick timer activity.
戻り値
true: Active
falseDeactive
bool TZ01_system_tick_start ( TZ01_SYSTEM_TICK_NO  tim_no,
uint32_t  ms_timeout 
)

Start tick timer.

引数
[in]tim_noTick timer number.
[in]ms_timeoutTimeout(UNIT: ms)
戻り値
Result
戻り値
true: Success.
falseFailed.

Start tick timer

bool TZ01_system_tick_stop ( TZ01_SYSTEM_TICK_NO  tim_no)

Stop tick timer.

引数
[in]tim_noTick timer number.
戻り値
Result
戻り値
true: Success.
falseFailed.