User`s manual

RX62N Group, RX621 Group 4. Library Reference
5) R_MTU2_ControlUnit
Synopsis
Control a Multi-function Timer Pulse Unit.
Prototype
bool R_MTU2_ControlUnit(
uint8_t data1,
// Unit selection
R_MTU2_ControlUnit_structure ptr
// A pointer to the structure
);
R_MTU2_ControlUnit_structure members:
uint16_t data2
// Control selection
uint32_t data3
// Control selection
uint32_t data4
// Control selection
uint16_t data5
// Control selection
uint32_t data6
// Control selection
uint8_t data7
// Register selection
uint16_t data8
// Register value
uint16_t data9
// Register value
uint16_t data10
// Register value
Description (1/4)
Modify a timer unit’s registers.
[data1]
The unit number n (where n = 0 to 1).
[data2]
Simultaneous stop / start control. All selections are optional.
If multiple selections are required, use "|" to separate each selection.
Specify PDL_NO_DATA if no change is required.
Counter stop control
PDL_MTU2_STOP_CH_0
Stop the count operation for the selected channels.
Valid for n = 0.
PDL_MTU2_STOP_CH_1
PDL_MTU2_STOP_CH_2
PDL_MTU2_STOP_CH_3
PDL_MTU2_STOP_CH_4
PDL_MTU2_STOP_CH_6
Stop the count operation for the selected channels.
Valid for n = 1.
PDL_MTU2_STOP_CH_7
PDL_MTU2_STOP_CH_8
PDL_MTU2_STOP_CH_9
PDL_MTU2_STOP_CH_10
Counter start control
PDL_MTU2_START_CH_0
Start the count operation for the selected channels.
Valid for n = 0.
PDL_MTU2_START_CH_1
PDL_MTU2_START_CH_2
PDL_MTU2_START_CH_3
PDL_MTU2_START_CH_4
PDL_MTU2_START_CH_6
Start the count operation for the selected channels.
Valid for n = 1.
PDL_MTU2_START_CH_7
PDL_MTU2_START_CH_8
PDL_MTU2_START_CH_9
PDL_MTU2_START_CH_10
R20UT0084EE0112 Rev.1.12 Page 4-105
July. 16, 2014