@@ -122,7 +122,8 @@ public enum BoardIds
122122 OB3000_24_CHANNELS_BOARD = 63 ,
123123 BIOLISTENER_BOARD = 64 ,
124124 IRONBCI_32_BOARD = 65 ,
125- NEUROPAWN_KNIGHT_BOARD_IMU = 66
125+ NEUROPAWN_KNIGHT_BOARD_IMU = 66 ,
126+ MUSE_S_ANTHENA_BOARD = 67
126127 } ;
127128
128129
@@ -159,6 +160,8 @@ public static class BoardControllerLibrary64
159160 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
160161 public static extern int get_sampling_rate ( int board_id , int preset , int [ ] sampling_rate ) ;
161162 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
163+ public static extern int get_board_sampling_rate ( int preset , int [ ] sampling_rate , int board_id , string input_json ) ;
164+ [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
162165 public static extern int get_timestamp_channel ( int board_id , int preset , int [ ] timestamp_channel ) ;
163166 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
164167 public static extern int get_marker_channel ( int board_id , int preset , int [ ] marker_channel ) ;
@@ -181,6 +184,8 @@ public static class BoardControllerLibrary64
181184 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
182185 public static extern int get_ppg_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
183186 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
187+ public static extern int get_optical_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
188+ [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
184189 public static extern int get_accel_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
185190 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
186191 public static extern int get_rotation_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
@@ -249,6 +254,8 @@ public static class BoardControllerLibrary32
249254 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
250255 public static extern int get_sampling_rate ( int board_id , int preset , int [ ] sampling_rate ) ;
251256 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
257+ public static extern int get_board_sampling_rate ( int preset , int [ ] sampling_rate , int board_id , string input_json ) ;
258+ [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
252259 public static extern int get_timestamp_channel ( int board_id , int preset , int [ ] timestamp_channel ) ;
253260 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
254261 public static extern int get_marker_channel ( int board_id , int preset , int [ ] marker_channel ) ;
@@ -271,6 +278,8 @@ public static class BoardControllerLibrary32
271278 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
272279 public static extern int get_ppg_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
273280 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
281+ public static extern int get_optical_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
282+ [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
274283 public static extern int get_accel_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
275284 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
276285 public static extern int get_rotation_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
@@ -535,6 +544,19 @@ public static int get_sampling_rate (int board_id, int preset, int[] sampling_ra
535544 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
536545 }
537546
547+ public static int get_board_sampling_rate ( int preset , int [ ] sampling_rate , int board_id , string input_json )
548+ {
549+ switch ( PlatformHelper . get_library_environment ( ) )
550+ {
551+ case LibraryEnvironment . x64 :
552+ return BoardControllerLibrary64 . get_board_sampling_rate ( preset , sampling_rate , board_id , input_json ) ;
553+ case LibraryEnvironment . x86 :
554+ return BoardControllerLibrary32 . get_board_sampling_rate ( preset , sampling_rate , board_id , input_json ) ;
555+ }
556+
557+ return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
558+ }
559+
538560 public static int get_package_num_channel ( int board_id , int preset , int [ ] package_num )
539561 {
540562 switch ( PlatformHelper . get_library_environment ( ) )
@@ -756,6 +778,19 @@ public static int get_ppg_channels (int board_id, int preset, int[] channels, in
756778 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
757779 }
758780
781+ public static int get_optical_channels ( int board_id , int preset , int [ ] channels , int [ ] len )
782+ {
783+ switch ( PlatformHelper . get_library_environment ( ) )
784+ {
785+ case LibraryEnvironment . x64 :
786+ return BoardControllerLibrary64 . get_optical_channels ( board_id , preset , channels , len ) ;
787+ case LibraryEnvironment . x86 :
788+ return BoardControllerLibrary32 . get_optical_channels ( board_id , preset , channels , len ) ;
789+ }
790+
791+ return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
792+ }
793+
759794 public static int get_accel_channels ( int board_id , int preset , int [ ] channels , int [ ] len )
760795 {
761796 switch ( PlatformHelper . get_library_environment ( ) )
0 commit comments