Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
1ac42f7a
Unverified
Commit
1ac42f7a
authored
May 26, 2021
by
Alexander Entinger
Committed by
GitHub
May 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Declare TwoWire functions as virtual" (#412)
parent
5fb6220f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
libraries/Wire/src/Wire.h
libraries/Wire/src/Wire.h
+19
-19
No files found.
libraries/Wire/src/Wire.h
View file @
1ac42f7a
...
...
@@ -50,31 +50,31 @@ class TwoWire : public Stream
static
void
onReceiveService
(
uint8_t
*
,
int
);
public:
TwoWire
();
v
irtual
v
oid
begin
();
v
irtual
v
oid
begin
(
uint8_t
);
v
irtual
v
oid
begin
(
int
);
v
irtual
v
oid
end
();
v
irtual
v
oid
setClock
(
uint32_t
);
v
irtual
v
oid
setWireTimeout
(
uint32_t
timeout
=
25000
,
bool
reset_with_timeout
=
false
);
virtual
bool
getWireTimeoutFlag
(
void
);
v
irtual
v
oid
clearWireTimeoutFlag
(
void
);
v
irtual
v
oid
beginTransmission
(
uint8_t
);
v
irtual
v
oid
beginTransmission
(
int
);
virtual
uint8_t
endTransmission
(
void
);
virtual
uint8_t
endTransmission
(
uint8_t
);
virtual
uint8_t
requestFrom
(
uint8_t
,
uint8_t
);
virtual
uint8_t
requestFrom
(
uint8_t
,
uint8_t
,
uint8_t
);
virtual
uint8_t
requestFrom
(
uint8_t
,
uint8_t
,
uint32_t
,
uint8_t
,
uint8_t
);
virtual
uint8_t
requestFrom
(
int
,
int
);
virtual
uint8_t
requestFrom
(
int
,
int
,
int
);
void
begin
();
void
begin
(
uint8_t
);
void
begin
(
int
);
void
end
();
void
setClock
(
uint32_t
);
void
setWireTimeout
(
uint32_t
timeout
=
25000
,
bool
reset_with_timeout
=
false
);
bool
getWireTimeoutFlag
(
void
);
void
clearWireTimeoutFlag
(
void
);
void
beginTransmission
(
uint8_t
);
void
beginTransmission
(
int
);
uint8_t
endTransmission
(
void
);
uint8_t
endTransmission
(
uint8_t
);
uint8_t
requestFrom
(
uint8_t
,
uint8_t
);
uint8_t
requestFrom
(
uint8_t
,
uint8_t
,
uint8_t
);
uint8_t
requestFrom
(
uint8_t
,
uint8_t
,
uint32_t
,
uint8_t
,
uint8_t
);
uint8_t
requestFrom
(
int
,
int
);
uint8_t
requestFrom
(
int
,
int
,
int
);
virtual
size_t
write
(
uint8_t
);
virtual
size_t
write
(
const
uint8_t
*
,
size_t
);
virtual
int
available
(
void
);
virtual
int
read
(
void
);
virtual
int
peek
(
void
);
virtual
void
flush
(
void
);
v
irtual
v
oid
onReceive
(
void
(
*
)(
int
)
);
v
irtual
v
oid
onRequest
(
void
(
*
)(
void
)
);
void
onReceive
(
void
(
*
)(
int
)
);
void
onRequest
(
void
(
*
)(
void
)
);
inline
size_t
write
(
unsigned
long
n
)
{
return
write
((
uint8_t
)
n
);
}
inline
size_t
write
(
long
n
)
{
return
write
((
uint8_t
)
n
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment