35 #ifndef _ROSSERIAL_VEX_V5_V5_HARDWARE_H_ 36 #define _ROSSERIAL_VEX_V5_V5_HARDWARE_H_ 42 #include "pros/apix.h" 44 #define SERIAL_CLASS int 45 #define ROSVEX_BUFFER_INPUT_SIZE 32 52 void** arglist = (
void**) arg;
53 RB* inputBuffer = (
RB*) arglist[0];
54 __FILE* streamOut = (__FILE*) arglist[1];
58 char c = fgetc(streamOut);
73 serctl(SERCTL_DISABLE_COBS,
NULL);
74 rosFile = fopen(
"/ser/sout",
"r+");
77 void** taskArgs = (
void**) malloc(
sizeof(
void*) * 2);
97 void write(uint8_t* data,
int length) {
98 for(
int i = 0; i < length; i++) {
104 return pros::c::millis();
115 fputc(data, rosFile);
121 return fgetc(rosFile);
void write(uint8_t *data, int length)
void vexRosBufferInput(void *arg)
void vexroswritechar(uint8_t data)