User`s manual

RX62N Group, RX621 Group 4. Library Reference
2) R_POE_Create
Synopsis
Configure the Port Output Enable event handling.
Prototype
bool R_POE_Create(
uint16_t data1,
// Input configuration selection
void * func1,
// Callback function
void * func2,
// Callback function
void * func3,
// Callback function
void * func4,
// Callback function
uint8_t data2
// Interrupt priority level
);
Description
Enable interrupts and register callback functions.
[data1]
Interrupt selection.
If multiple selections are required, use "|" to separate each selection.
The default settings are shown in bold. Specify PDL_NO_DATA to use the defaults.
High impedance request response
PDL_POE_IRQ_HI_Z_0_3_DISABLE or
PDL_POE_IRQ_HI_Z_0_3_ENABLE
Disable or enable an interrupt on detection of any
high impedance request on pins POE0 to POE3.
PDL_POE_IRQ_HI_Z_4_7_DISABLE or
PDL_POE_IRQ_HI_Z_4_7_ENABLE
Disable or enable an interrupt on detection of any
high impedance request on pins POE4 to POE7.
Output short detection response
PDL_POE_IRQ_SHORT_3_4_DISABLE or
PDL_POE_IRQ_SHORT_3_4_ENABLE
Disable or enable an interrupt on detection of
a short on any MTU channel 3 or 4 two-phase
output pair.
PDL_POE_IRQ_SHORT_9_10_DISABLE or
PDL_POE_IRQ_SHORT_9_10_ENABLE
Disable or enable an interrupt on detection of
a short on any MTU channel 9 or 10
two-phase output pair.
[func1]
The function to be called when an enabled request on pins POE0 to POE3 or an output short on
MTU channels 3 or 4 occurs.
Specify PDL_NO_FUNC if not required.
[func2]
The function to be called when an enabled request on pins POE4 to POE7 or an output short on
MTU channels 9 or 10 occurs.
Specify PDL_NO_FUNC if not required.
[func3]
The function to be called when a request on pin POE8 occurs.
Specify PDL_NO_FUNC if not required.
[func4]
The function to be called when a request on pin POE9 occurs.
Specify PDL_NO_FUNC if not required.
[data2]
The interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for all parameters func1 to func4.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Port Output Enable
Reference
R_POE_Set, R_POE_GetStatus
R20UT0084EE0112 Rev.1.12 Page 4-116
July. 16, 2014