libpruio
0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
pruio_prussdrv.bi
Go to the documentation of this file.
1
15
16
' driver header file
17
#INCLUDE ONCE
"
pruio.bi
"
18
19
20
28
TYPE
__prussdrv
29
AS
Int32
_
30
mmap_fd
_
31
,
fd
(
NUM_PRU_HOSTIRQS
- 1)
32
AS
ANY
PTR
_
33
pru0_dataram_base
_
34
,
pru1_dataram_base
_
35
,
intc_base
_
36
,
pru0_control_base
_
37
,
pru1_control_base
_
38
,
pru0_iram_base
_
39
,
pru1_iram_base
_
40
,
extram_base
_
41
,
pruss_sharedram_base
42
AS
UInt32
_
43
pru0_dataram_phy_base
= &h4a300000 _
44
,
pru1_dataram_phy_base
= &h4a302000 _
45
,
intc_phy_base
= &h4a320000 _
46
,
pru0_control_phy_base
= &h4a322000 _
47
,
pru1_control_phy_base
= &h4a324000 _
48
,
pru0_iram_phy_base
= &h4a334000 _
49
,
pru1_iram_phy_base
= &h4a338000 _
50
,
pruss_sram_phy_base
= &h4a310000 _
51
,
pruss_map_size
_
52
,
extram_phys_base
_
53
,
extram_map_size
54
AS
tpruss_intc_initdata
intc_data
55
END TYPE
56
57
58
TYPE
AS
__prussdrv
tprussdrv
59
60
DECLARE FUNCTION
prussdrv_open
CDECL ALIAS
"prussdrv_open"
(
BYVAL AS
UInt32
)
AS
Int32
61
DECLARE FUNCTION
prussdrv_pru_enable
CDECL ALIAS
"prussdrv_pru_enable"
(
BYVAL AS
UInt32
,
BYVAL AS
UInt32
= 0)
AS
Int32
62
DECLARE FUNCTION
prussdrv_pru_disable
CDECL ALIAS
"prussdrv_pru_disable"
(
BYVAL AS
UInt32
)
AS
Int32
63
DECLARE FUNCTION
prussdrv_pru_reset
CDECL ALIAS
"prussdrv_pru_reset"
(
BYVAL AS
UInt32
)
AS
Int32
64
DECLARE FUNCTION
prussdrv_pru_resume
CDECL ALIAS
"prussdrv_pru_resume"
(
BYVAL AS
UInt32
)
AS ZSTRING PTR
65
DECLARE FUNCTION
prussdrv_pru_write_memory
CDECL ALIAS
"prussdrv_pru_write_memory"
( _
66
BYVAL AS
UInt32
_
67
,
BYVAL AS
UInt32
_
68
,
BYVAL AS CONST
UInt32
PTR
_
69
,
BYVAL AS
UInt32
)
AS
Int32
70
DECLARE FUNCTION
prussdrv_pruintc_init
CDECL ALIAS
"prussdrv_pruintc_init"
(
BYVAL AS CONST
tpruss_intc_initdata
PTR
)
AS
Int32
71
DECLARE SUB
prussdrv_pru_send_event
CDECL ALIAS
"prussdrv_pru_send_event"
(
BYVAL AS
UInt32
)
72
DECLARE FUNCTION
prussdrv_pru_wait_event
CDECL ALIAS
"prussdrv_pru_wait_event"
(
BYVAL AS
UInt32
)
AS
UInt32
73
DECLARE SUB
prussdrv_pru_clear_event
CDECL ALIAS
"prussdrv_pru_clear_event"
(
BYVAL AS
UInt32
,
BYVAL AS
UInt32
)
74
DECLARE SUB
prussdrv_map_extmem
CDECL ALIAS
"prussdrv_map_extmem"
(
BYVAL AS
ANY
PTR PTR
)
75
DECLARE FUNCTION
prussdrv_extmem_sIze
CDECL ALIAS
"prussdrv_extmem_size"
()
AS
UInt32
76
DECLARE FUNCTION
prussdrv_map_prumem
CDECL ALIAS
"prussdrv_map_prumem"
(
BYVAL AS
UInt32
,
BYVAL AS
ANY
PTR PTR
)
AS
Int32
77
DECLARE FUNCTION
prussdrv_get_phys_addr
CDECL ALIAS
"prussdrv_get_phys_addr"
(
BYVAL AS CONST
ANY
PTR
)
AS
UInt32
78
DECLARE SUB
prussdrv_exIt
CDECL ALIAS
"prussdrv_exit"
()
79
src
pruio
pruio_prussdrv.bi
Generated on Thu May 11 2023 12:42:51 for libpruio by
1.9.1