libpruio
0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
pruio_timer.bi
Go to the documentation of this file.
1
9
10
11
20
TYPE
TimerSet
21
AS
UInt32
_
22
DeAd
_
23
,
ClAd
_
24
,
ClVa
25
26
AS
UInt32
_
27
TIDR
_
28
,
TIOCP_CFG
_
29
,
IRQ_EOI
_
30
,
IRQSTATUS_RAW
_
31
,
IRQSTATUS
_
32
,
IRQENABLE_SET
_
33
,
IRQENABLE_CLR
_
34
,
IRQWAKEEN
_
35
,
TCLR
_
36
,
TCRR
_
37
,
TLDR
_
38
,
TTGR
_
39
,
TWPS
_
40
,
TMAR
_
41
,
TCAR1
_
42
,
TSICR
_
43
,
TCAR2
44
END TYPE
45
46
53
TYPE
TimerArr
54
AS
UInt32
_
55
DeAd
56
AS
UInt32
_
57
CMax
_
58
,
TCAR1
_
59
,
TCAR2
60
END TYPE
61
62
63
72
TYPE
TimerUdt
73
AS
Pruio_
PTR
Top
74
AS
TimerSet
PTR
_
75
Init
(
PRUIO_AZ_TIMER
) _
76
,
Conf
(
PRUIO_AZ_TIMER
)
77
AS
TimerArr
PTR
_
78
Raw
(
PRUIO_AZ_TIMER
)
79
AS
UInt32
_
80
InitParA
_
81
,
PwmMode
= &b001100001000011 _
82
,
TimMode
= &b001100001000010 _
83
,
TimHigh
= &b000000010000000 _
84
,
Tim_Low
= &b000000000000000 _
85
,
CapMode
= &b010000110000000
86
AS ZSTRING PTR
_
87
E0
= @
"TIMER subsystem not enabled"
_
88
,
E1
= @
"pin has no TIMER capability"
_
89
,
E2
= @
"pin not in TIMER mode"
_
90
,
E3
= @
"duration too short"
_
91
,
E4
= @
"duration too long"
_
92
,
E5
= @
"pin not in CAP mode"
93
94
DECLARE CONSTRUCTOR
(
BYVAL AS
Pruio_
PTR
)
95
DECLARE FUNCTION
initialize
CDECL
()
AS ZSTRING PTR
96
DECLARE FUNCTION
setValue
CDECL
( _
97
BYVAL AS
UInt8 _
98
,
BYVAL AS
Float_t _
99
,
BYVAL AS
Float_t = 0. _
100
,
BYVAL AS SHORT
= 0)
AS ZSTRING PTR
101
DECLARE FUNCTION
Value
CDECL
( _
102
BYVAL AS
UInt8 _
103
,
BYVAL AS
Float_t
PTR
_
104
,
BYVAL AS
Float_t
PTR
)
AS ZSTRING PTR
105
106
DECLARE FUNCTION
pwm_set
CDECL
( _
107
BYVAL AS
UInt8 _
108
,
BYVAL AS
Float_t _
109
,
BYVAL AS
Float_t = 0.)
AS ZSTRING PTR
110
DECLARE FUNCTION
pwm_get
CDECL
( _
111
BYVAL AS
UInt8 _
112
,
BYVAL AS
Float_t
PTR
= 0 _
113
,
BYVAL AS
Float_t
PTR
= 0)
AS ZSTRING PTR
114
'DECLARE FUNCTION cap_get CDECL( _
115
'BYVAL AS UInt8 _
116
', BYVAL AS Float_t PTR = 0 _
117
', BYVAL AS Float_t PTR = 0 ) AS ZSTRING PTR
118
END TYPE
119
src
pruio
pruio_timer.bi
Generated on Thu May 11 2023 12:42:51 for libpruio by
1.9.1