10 #ifndef STFF_STFishFinder_h_
11 #define STFF_STFishFinder_h_
318 (
const Replay* pPlaybackData,
751 int32_t durationSeconds);
1352 FF_Error_t GetCopyrightMessage (
char *pCopyrightMessage,
1353 uint16_t *pLength)
const;
1423 uint32_t *pMaxDepth,
1435 FF_Error_t GetPostResult (FF_PostResult_t *pPostResult)
const;
1436 FF_Error_t GetConfigJumperValue (uint8_t *pConfigJumperValue)
const;
1514 uint16_t *pMaxInputSamples)
const;
1565 uint32_t *pMaxSpeedPPNM)
const;
1635 int16_t *pMinTempOffset,
1636 int16_t *pMaxTempOffset)
const;
1732 uint32_t *pMinRangeDeep,
1733 uint32_t *pMaxRangeDeep)
const;
1788 uint16_t *pMaxGain)
const;
1843 int16_t *pMaxOffset)
const;
1910 uint16_t *pMinLargestOffset,
1911 uint16_t *pMaxLargestOffset)
const;
1918 FF_Error_t GetFstcLimits (uint16_t *pMinFsts, uint16_t *pMaxFsts, uint16_t *pMinFstd, uint16_t *pMaxFstd)
const;
1919 FF_Error_t GetDstcLimits (uint16_t *pMinDsts, uint16_t *pMaxDsts, uint16_t *pMinDstd, uint16_t *pMaxDstd)
const;
2511 uint16_t *pGainSetting,
2562 int16_t *pGainOffset,
2636 uint16_t *pNumColors,
2637 uint16_t *pGainColorOffsets,
2825 int16_t *pTemperatureOffset,
2948 uint32_t *pShallowAlarm,
2949 uint32_t *pDeepAlarm,
3646 int16_t gainOffset);
3776 const uint16_t *pGainColorOffsets);
3983 int16_t temperatureOffset);
4068 FF_Error_t SetWaterType (FF_WaterType_t waterType);
4171 uint32_t shallowAlarmSetting,
4172 uint32_t deepAlarmSetting);
4178 friend class STFF_Client;
4202 #endif // defined (STFF_STFishFinder_h_)
FF_Error_t GetTemperature(FF_TemperatureUnits_t units, FF_TemperatureData_t *pTemperatureData) const
Getter function to provide the current water temperature data.
FF_DepthUnits_t
Depth Units selection.
FF_Error_t GetSpeed(FF_SpeedUnits_t units, FF_SpeedData_t *pSpeedData) const
Getter function to provide the current Speed Through Water data.
FF_Error_t SetNumInputSamples(uint16_t numInputSamples)
Setter function to establish the number of samples that will be provided by the black box when transf...
void(* Callback_SettingChanged_t)(const STFishFinder *, FF_SettingType_t, FF_Frequency_t)
'Setting Changed' callback.
Battery Voltage Data structure.
void TimerTick()
Provides a means by which time-dependent processes within the STFishFinder API can be serviced on a p...
FF_Error_t GetFrequencyMode(FF_FrequencyMode_t *pFrequencyMode, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Frequency Mode setting.
FF_Error_t GetAutoGainSetting(FF_AutoGainSetting_t *pAutoGainSetting, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Auto Gain setting.
FF_Error_t GetGainLimits(uint16_t *pMinGain, uint16_t *pMaxGain) const
Getter function to provide limits for the parameter to the SetGain() member function.
FF_DepthAlarmState_t
Depth Alarm State options.
FF_SpeedUnits_t
Speed Units selection.
FF_SettingStatus_t
Setting Status options.
void(* Callback_DepthAlarmStateChange_t)(const STFishFinder *, FF_DepthAlarmType_t)
'Depth Alarm State Change' callback.
FF_Error_t GetFWVersion(char *pFWVersion, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Firmware Version string for the connected black box fish finder...
FF_Error_t GetGainColorOffsets(FF_Frequency_t frequency, uint16_t *pNumColors, uint16_t *pGainColorOffsets, FF_SettingStatus_t *pStatus) const
Getter function to provide the number of colors used when generating the STFF::ImageColumn data...
FF_Error_t GetHWVersion(char *pHWVersion, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Hardware Version string for the connected black box fish finder...
FF_Error_t SetTemperatureOffset(FF_TemperatureUnits_t units, int16_t temperatureOffset)
Setter function to specify the Temperature Offset calibration setting for the black box...
The Version class provides software version information.
FF_Error_t SetGainColorOffsets(FF_Frequency_t frequency, uint16_t numColors, const uint16_t *pGainColorOffsets)
Setter function to specify the number of colors the API should provide in the STFF::ImageColumn data...
static FF_Error_t SetCallbacks(Callback_SettingChanged_t pSettingChanged, Callback_DataItemReceived_t pDataItemReceived, Callback_DepthAlarmStateChange_t pDepthAlarmStateChange, Callback_FishAlarmTrigger_t pFishAlarmTrigger, Callback_StreamDataToFF_t pStreamDataToFF)
Specifies the static callback functions to be called by the STFishFinder API when specific events occ...
static STFishFinder * CreateFishFinder(FF_Error_t *pError)
Use this function to create an STFishFinder API object once a connection (or session) has been establ...
Header file containing enumerations and simple struct types used in the STFishFinder API...
The ImageColumn class is a container for sample data retrieved from a single sonar ping...
FF_Error_t Control(FF_ControlCommand_t command, const void *pParam)
Provides a facility to alter system-related behavior of the black box and API.
FF_Error_t SetDepthAlarmSettings(FF_DepthUnits_t units, uint32_t shallowAlarmSetting, uint32_t deepAlarmSetting)
Setter function to set the Shallow Depth Alarm and Deep Depth Alarm master settings within the black ...
FF_Error_t GetDepthAlarmState(FF_DepthAlarmState_t *pShallowAlarmState, FF_DepthAlarmState_t *pDeepAlarmState, FF_DataStatus_t *pStatus) const
Provides the current state of both the shallow depth alarm and the deep depth alarm.
FF_Error_t StopRecording()
This function discontinues the recording of the API session that was initiated by a call to StartReco...
void(* Callback_StreamDataToFF_t)(const STFishFinder *, const char *, uint32_t)
'Stream Data to FishFinder' callback.
FF_Error_t GetTemperatureOffsetLimits(FF_TemperatureUnits_t units, int16_t *pMinTempOffset, int16_t *pMaxTempOffset) const
Getter function to provide limits for the parameter to the SetTemperatureOffset() member function...
FF_Error_t ParseFFInputStream(char *pInputStream, uint32_t numBytes)
This function parses and interprets the stream of messages from the black box fish finder...
FF_Error_t GetDepth(FF_DepthUnits_t units, FF_DepthData_t *pDepthData) const
Getter function to provide the current Depth data.
FF_ApiStatus_t
API Status selection.
FF_Error_t SetFishIdSetting(FF_Frequency_t frequency, const FF_FishIdSetting_t *pFishIdSetting)
Setter function to specify the Fish ID setting for the black box and the API.
FF_Error_t GetAutoRangeSetting(FF_AutoRangeSetting_t *pAutoRange, FF_DepthUnits_t *pUnits, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Auto Range setting.
FF_Error_t GetProductName(char *pProductName, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Product Name for the connected black box fish finder.
FF_Error_t GetSerialNumber(char *pSerialNumber, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Serial Number of the connected black box fish finder.
FF_Error_t GetFishIdSetting(FF_Frequency_t frequency, FF_FishIdSetting_t *pFishIdSetting, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Fish ID setting.
FF_DataStatus_t
Data Status options.
static STFishFinder * CreateFishFinderForPlayback(const Replay *pPlaybackData, FF_Error_t *pError)
Use this function to create an STFishFinder API object for the purpose of playing back a previously r...
FF_DepthAlarmType_t
Depth Alarm Type selection.
This is the namespace containing the platform-independent STFishFinder API.
FF_TemperatureUnits_t
Temperature Units selection.
FF_Error_t GetRange(FF_RangeSetting_t *pRangeSetting, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Range setting.
FF_Error_t SetAutoRangeSetting(FF_AutoRangeSetting_t autoRangeSetting, FF_DepthUnits_t units)
Setter function to specify the Auto Range setting for the black box and the API.
FF_Error_t Hello()
Initiates communication with the black box fish finder after a connection is established.
FF_Error_t GetGainOffset(FF_Frequency_t frequency, int16_t *pGainOffset, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Gain Offset setting.
Header file for the STFF::Version class; also contains version macros for the entire STFishFinder API...
FF_Error_t GetSpeedPulsesPerNauticalMile(uint32_t *pSpeedPPNM, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Speed PPNM master setting.
void(* Callback_FishAlarmTrigger_t)(const STFishFinder *, FF_FishData_t)
'Fish Alarm Trigger' callback.
FF_Error_t SetFrequencyMode(FF_FrequencyMode_t frequencyMode)
Setter function to specify the Frequency Mode setting for the black box and the API.
FF_Error_t GetInputSamplesLimits(uint16_t *pMinInputSamples, uint16_t *pMaxInputSamples) const
Getter function to provide limits for the parameter to the SetNumInputSamples() member function...
FF_Error_t GetMaxPossibleDepth(FF_Frequency_t frequency, FF_DepthUnits_t units, uint32_t *pMaxDepth, FF_DataStatus_t *pStatus) const
Getter function to provide the maximum possible depth at the specified frequency for the connected bl...
~STFishFinder()
This is the STFishFinder class destructor.
FF_AutoGainSetting_t
Auto Gain setting options.
Fish ID Setting structure.
FF_Error_t GetApiVersion(Version *pApiVersion) const
Getter function to provide an STFF::Version object containing version information for the present ins...
This is the main class for the STFishFinder API.
FF_ControlCommand_t
Control Command options.
FF_FrequencyMode_t
Sonar Frequency Mode options.
FF_Error_t SetSpeedPulsesPerNauticalMile(uint32_t speedPPNM)
Setter function to specify the Speed Pulses Per Nautical Mile (PPNM) setting used by the black box to...
FF_Error_t SilenceDepthAlarm(FF_DepthAlarmType_t alarmType, int32_t durationSeconds)
Sends a message to the black box instructing it to temporarily silence a currently active depth alarm...
FF_ApiStatus_t GetApiStatus() const
Returns the status of the STFishFinder API.
FF_Error_t GetBatteryVoltage(FF_BatteryVoltageData_t *pBatteryVoltageData) const
Getter function to provide the current Battery Voltage data.
FF_Error_t StartRecording(Replay *pReplay)
This function enables the recording of an API session.
FF_Error_t GetTemperatureOffset(FF_TemperatureUnits_t units, int16_t *pTemperatureOffset, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Temperature Offset master setting.
static STFishFinder * CreateSimulatedFishFinder(FF_Error_t *pError)
Use this function to create an STFishFinder API object that provides simulated data for demonstration...
void(* Callback_DataItemReceived_t)(const STFishFinder *, FF_DataType_t, const void *)
'Data Item Received' callback.
FF_Error_t GetDepthAlarmSettings(FF_DepthUnits_t *pUnits, uint32_t *pShallowAlarm, uint32_t *pDeepAlarm, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Depth Alarm master settings.
FF_Error_t GetBootloaderVersion(char *pBootloaderVersion, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Bootloader Version string for the connected black box fish finder...
Header file for the STFF::Replay class.
FF_Error_t GetGain(FF_Frequency_t frequency, uint16_t *pGainSetting, FF_SettingStatus_t *pStatus) const
Getter function to provide the current Gain setting.
FF_Error_t GetGainOffsetLimits(int16_t *pMinOffset, int16_t *pMaxOffset) const
Getter function to provide limits for the parameter to the SetGainOffset() member function...
FF_Error_t SetRange(const FF_RangeSetting_t *pRangeSetting)
Setter function to "manually" specify the Range setting for the black box and the API...
FF_Error_t GetGainColorOffsetsLimits(uint16_t *pNumOffsets, uint16_t *pMinLargestOffset, uint16_t *pMaxLargestOffset) const
Getter function to provide:
Temperature Data structure.
FF_Error_t GetCompanyName(char *pCompanyName, uint16_t *pLength, FF_DataStatus_t *pStatus) const
Getter function to provide the Company Name for the connected black box fish finder.
FF_Error_t SetAutoGainSetting(FF_AutoGainSetting_t autoGainSetting)
Setter function to specify the Auto Gain setting for the black box and the API.
Header file containing type definitions for callback functions used in the STFishFinder API...
FF_Frequency_t
Sonar Frequency options.
FF_Error_t GetSpeedPulsesPerNauticalMileLimits(uint32_t *pMinSpeedPPNM, uint32_t *pMaxSpeedPPNM) const
Getter function to provide limits for the parameter to the SetSpeedPulsesPerNauticalMile() member fun...
static const uint16_t MaxAttributeStringLength
Maximum size of character strings, including the terminating '\0', provided by certain getter member ...
FF_Error_t GetRangeLimits(FF_DepthUnits_t units, uint32_t *pMinRangeDeep, uint32_t *pMaxRangeDeep) const
Getter function to provide limits for the parameter to the SetRange() member function.
FF_AutoRangeSetting_t
Auto Range setting options.
FF_Error_t GetNumInputSamples(uint16_t *pNumInputSamples, FF_SettingStatus_t *pStatus) const
Getter function to provide the current setting for the number of samples that will be provided by the...
FF_Error_t SetGainOffset(FF_Frequency_t frequency, int16_t gainOffset)
Setter function to specify the Gain Offset setting for the black box.
FF_Error_t SetGain(FF_Frequency_t frequency, uint16_t gainSetting)
Setter function to "manually" specify the Gain setting for the black box.