-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrey Parfenov <a1994ndrey@gmail.com> Author: Nick Gamb <nickgamb@gmail.com> Date: Sun Jun 30 02:40:04 2024 +0200
- Loading branch information
1 parent
ac5a2dd
commit ac392a5
Showing
58 changed files
with
10,415 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,6 @@ | |
AAVAA_V3_BOARD(53) | ||
EXPLORE_PLUS_8_CHAN_BOARD(54) | ||
EXPLORE_PLUS_32_CHAN_BOARD(55) | ||
PIEEG_BOARD(56) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <thread> | ||
|
||
#include "board.h" | ||
#include "board_controller.h" | ||
#include "math.h" | ||
#include "socket_server_tcp.h" | ||
|
||
#ifdef USE_PERIPHERY | ||
#include "gpio.h" | ||
#include "spi.h" | ||
#endif | ||
|
||
class PIEEGBoard : public Board | ||
{ | ||
protected: | ||
#ifdef USE_PERIPHERY | ||
volatile bool keep_alive; | ||
bool initialized; | ||
std::thread streaming_thread; | ||
spi_t *spi; | ||
gpio_t *gpio_in; | ||
SocketServerTCP *server_socket; | ||
void read_thread (); | ||
int write_reg (uint8_t reg_address, uint8_t val); | ||
int send_command (uint8_t command); | ||
#endif | ||
|
||
public: | ||
PIEEGBoard (int board_id, struct BrainFlowInputParams params); | ||
~PIEEGBoard (); | ||
|
||
int prepare_session (); | ||
int start_stream (int buffer_size, const char *streamer_params); | ||
int stop_stream (); | ||
int release_session (); | ||
int config_board (std::string config, std::string &response); | ||
}; |
Oops, something went wrong.