Download 78K0 Design - Renesas Electronics

Transcript
CubeSuite Ver.1.40
APPENDIX C API FUNCTIONS
TM00_ChangeTimerCondition
Changes the value of 16-bit timer capture/compare control register 0n0 (CR0n0).
Remark
To change the contents of CR0n0, you must call TM00_Stop before calling this API function.
[Classification]
CG_timer.c
[Syntax]
#include
"CG_macrodriver.h"
#include
"CG_timer.h"
MD_STATUS
TM00_ChangeTimerCondition ( USHORT *array_reg, USHORT array_num );
[Argument(s)]
I/O
Argument
Description
I
USHORT
*array_reg;
Pointer to the area storing the value to set in the target register
I
USHORT
array_num;
The register to change
1: CR000
2: CR000, CR010
[Return value]
Macro
Description
MD_OK
Normal completion
MD_ERROR
Invalid argument "array_num" specification
R20UT0006EJ0100 Rev.1.00
Sep 01, 2010
Page 222 of 300