MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / init_streamer

Method init_streamer

src/board_controller/file_streamer.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int FileStreamer::init_streamer ()
26{
27 if ((strcmp (file_mode, "w") != 0) && (strcmp (file_mode, "w+") != 0) &&
28 (strcmp (file_mode, "a") != 0) && (strcmp (file_mode, "a+") != 0))
29 {
30 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
31 }
32 fp = fopen (file, file_mode);
33 if (fp == NULL)
34 {
35 return (int)BrainFlowExitCodes::GENERAL_ERROR;
36 }
37 return (int)BrainFlowExitCodes::STATUS_OK;
38}
39
40void FileStreamer::stream_data (double *data)
41{

Callers 1

add_streamerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected