mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Merge pull request #25 from pierreluctg/icsneolegacy-setFDBitRate
Adding icsneoSetFDBitRate api to the icsneolocacy
This commit is contained in:
@@ -409,6 +409,15 @@ int icsneoSetBitRate(void* hObject, int BitRate, int NetworkID) {
|
||||
return icsneo_settingsApply(device);
|
||||
}
|
||||
|
||||
int icsneoSetFDBitRate(void* hObject, int BitRate, int NetworkID) {
|
||||
if(!icsneoValidateHObject(hObject))
|
||||
return false;
|
||||
neodevice_t* device = (neodevice_t*)hObject;
|
||||
if(!icsneo_setFDBaudrate(device, (uint16_t)NetworkID, BitRate))
|
||||
return false;
|
||||
return icsneo_settingsApply(device);
|
||||
}
|
||||
|
||||
int icsneoGetDeviceParameters(void* hObject, char* pParameter, char* pValues, short ValuesLength) {
|
||||
// TODO Implement
|
||||
return false;
|
||||
|
||||
@@ -56,6 +56,7 @@ extern int DLLExport icsneoGetRADStar2Settings(void* hObject, SRADStar2Settings*
|
||||
extern int DLLExport icsneoSetRADStar2Settings(void* hObject, SRADStar2Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||
|
||||
extern int DLLExport icsneoSetBitRate(void* hObject, int BitRate, int NetworkID);
|
||||
extern int DLLExport icsneoSetFDBitRate(void* hObject, int BitRate, int NetworkID);
|
||||
extern int DLLExport icsneoGetDeviceParameters(void* hObject, char* pParameter, char* pValues, short ValuesLength);
|
||||
extern int DLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, int* pErrorIndex, int bSaveToEEPROM);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user