Skip to content

Commit

Permalink
fixing rust
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Parfenov <a1994ndrey@gmail.com>
  • Loading branch information
Andrey1994 committed Sep 13, 2023
1 parent 82ef5ee commit 467ee1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions rust_package/brainflow/src/ffi/board_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,13 @@ extern "C" {
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn get_rotaiton_channels(
pub fn get_rotation_channels(
board_id: ::std::os::raw::c_int,
preset: ::std::os::raw::c_int,
rotation_channels: *mut ::std::os::raw::c_int,
len: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn get_rotaiton_calib_channel(
board_id: ::std::os::raw::c_int,
preset: ::std::os::raw::c_int,
get_rotaiton_calib_channel: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn get_analog_channels(
board_id: ::std::os::raw::c_int,
Expand Down
3 changes: 2 additions & 1 deletion rust_package/brainflow/src/ffi/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl BoardIds {
pub const FIRST: BoardIds = BoardIds::PlaybackFileBoard;
}
impl BoardIds {
pub const LAST: BoardIds = BoardIds::Freeeeg128Board;
pub const LAST: BoardIds = BoardIds::AavaaV3Board;
}
#[repr(i32)]
#[derive(FromPrimitive, ToPrimitive, Debug, Copy, Clone, Hash, PartialEq, Eq)]
Expand Down Expand Up @@ -91,6 +91,7 @@ pub enum BoardIds {
NtlWifiBoard = 50,
AntNeuroEe511Board = 51,
Freeeeg128Board = 52,
AavaaV3Board = 53,
}
#[repr(i32)]
#[derive(FromPrimitive, ToPrimitive, Debug, Copy, Clone, Hash, PartialEq, Eq)]
Expand Down

0 comments on commit 467ee1e

Please sign in to comment.