Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some convenience for building applications that want to read Emotiv data.
You can use this if you are writing an EEG application and don't want to do the whole device selection / opening yourself.
- data EmotivArgs = EmotivArgs {}
- emotivArgsParser :: Parser EmotivArgs
- parseModel :: Monad m => String -> m EmotivModel
- parseArgs :: String -> Parser a -> IO a
- getEmotivDeviceFromArgs :: EmotivArgs -> IO (Either String EmotivDevice)
Documentation
data EmotivArgs Source
Commonly used options for EEG command line applications. Mainly deals with input selection.
EmotivArgs | |
|
emotivArgsParser :: Parser EmotivArgs Source
Command line parser for EEG selection. See EmotivArgs
.
parseModel :: Monad m => String -> m EmotivModel Source
EEG model command line parser.
parseArgs :: String -> Parser a -> IO a Source
Runs a command line parser. The given program description is used for the --help message.
getEmotivDeviceFromArgs :: EmotivArgs -> IO (Either String EmotivDevice) Source
Depending on some common EEG-choice-related user input, list devices or try to open the correct device.