diff options
| author | Aditya Naik | 2020-08-07 12:41:48 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-08-07 12:41:48 -0400 |
| commit | cda9397f911dea0b57ffd3c041121885ab03b79c (patch) | |
| tree | cc7a97b32ee45b707d6985287de8bd529d7506ab /include | |
| parent | 4e8a6d4122e188ed2ca6668e30c0500e63fba8ef (diff) | |
Device abstraction work
Diffstat (limited to 'include')
| -rw-r--r-- | include/stream.h | 10 | ||||
| -rw-r--r-- | include/stream_i2c.h | 4 | ||||
| -rw-r--r-- | include/stream_stdio.h | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/include/stream.h b/include/stream.h index 73b3daa..9c6da54 100644 --- a/include/stream.h +++ b/include/stream.h @@ -3,7 +3,8 @@ #ifndef __STREAM_H #define __STREAM_H -/* + +/** * Struct for abstract stream * * Stream properties: generalized variables for individual devices @@ -19,4 +20,9 @@ typedef struct { void **props; } p_stream_t; -#endif +typedef enum { + STDIO, +} devices; + + +#endif /* __STREAM_H */ diff --git a/include/stream_i2c.h b/include/stream_i2c.h index ccbccde..5b2ab90 100644 --- a/include/stream_i2c.h +++ b/include/stream_i2c.h @@ -1,5 +1,5 @@ #include <stdint.h> #include <stddef.h> -int i2c_read(uint8_t* buf, size_t count, void **vptr, void *sptr); -int i2c_write(uint8_t* buf, size_t count, void **vptr, void *sptr); +int read_I2C(uint8_t* buf, size_t count, void **vptr, void *sptr); +int write_I2C(uint8_t* buf, size_t count, void **vptr, void *sptr); diff --git a/include/stream_stdio.h b/include/stream_stdio.h index c72183b..dbcff9f 100644 --- a/include/stream_stdio.h +++ b/include/stream_stdio.h @@ -1,5 +1,5 @@ #include <stdint.h> #include <stddef.h> -int stdio_read(uint8_t* buf, size_t count, void **vptr, void *sptr); -int stdio_write(uint8_t* buf, size_t count, void **vptr, void *sptr); +int read_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr); +int write_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr); |
