1 /*""FILE COMMENT""*******************************************************
2 * System Name	: POE API for RX62Nxx
3 * File Name		: r_pdl_poe_RX62Nxx.h
4 * Version		: 1.02
5 * Contents		: POE API header
6 * Customer		:
7 * Model			:
8 * Order			:
9 * CPU			: RX
10 * Compiler		: RXC
11 * OS			: Nothing
12 * Programmer	:
13 * Note			:
14 ************************************************************************
15 * Copyright, 2011. Renesas Electronics Corporation
16 * and Renesas Solutions Corporation
17 ************************************************************************
18 * History		: 2011.04.08
19 *				: Ver 1.02
20 *				: CS-5 release.
21 *""FILE COMMENT END""**************************************************/
22 
23 #ifndef R_PDL_POE_RX62Nxx_H
24 #define R_PDL_POE_RX62Nxx_H
25 
26 #define POE_INTERRUPTS	4
27 
28 /* Callback function storage */
29 extern VoidCallBackFunc rpdl_POE_callback_func[];
30 
31 /* Library prototypes */
32 bool R_POE_SetAll(
33 	const uint32_t,
34 	const uint8_t,
35 	const uint32_t
36 );
37 bool R_POE_CreateAll(
38 	const uint16_t,
39 	VoidCallBackFunc const,
40 	VoidCallBackFunc const,
41 	VoidCallBackFunc const,
42 	VoidCallBackFunc const,
43 	const uint8_t
44 );
45 bool R_POE_ControlAll(
46 	const uint8_t,
47 	const uint16_t,
48 	const uint16_t
49 );
50 bool R_POE_GetStatusAll(
51 	volatile uint16_t * const
52 );
53 bool ReturnFalse(void);
54 
55 /* Macro definitions */
56 
57 #define R_POE_Set(a, b, c) \
58 ( \
59 R_POE_SetAll( (a), (b), (c) ) \
60 )
61 
62 #define R_POE_Create(a, b, c, d, e, f) \
63 ( \
64 ( ((f) <= IPL_MAX) ) ? \
65 R_POE_CreateAll( (a), (b), (c), (d), (e), (f) ) : \
66 ReturnFalse() \
67 )
68 
69 #define R_POE_Control(a, b, c) \
70 ( \
71 R_POE_ControlAll( (a), (b), (c) ) \
72 )
73 
74 #define R_POE_GetStatus(a) \
75 ( \
76 R_POE_GetStatusAll( (a) ) \
77 )
78 
79 #endif
80 /* End of file */
81