public class CP210XbaudConfigs extends Object
Represents the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
| Constructor and Description |
|---|
CP210XbaudConfigs(int baudGen,
int timer0Reload,
int prescaler,
int baudRate)
Allocates a new CP210XbaudConfigs object with given details.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpBaudInfo()
Prints information about baudrate on console.
|
int |
getBaudGen()
Gives value of BaudGen member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
|
int |
getBaudRate()
Gives value of BaudRate member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
|
int |
getPrescaler()
Gives value of Prescaler member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
|
int |
getTimer0Reload()
Gives value of Timer0Reload member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
|
public CP210XbaudConfigs(int baudGen,
int timer0Reload,
int prescaler,
int baudRate)
Allocates a new CP210XbaudConfigs object with given details.
baudGen - values of BaudGen member variables for C structure.timer0Reload - values of Timer0Reload member variables for C structure.prescaler - values of Prescaler member variables for C structure.baudRate - values of BaudRate member variables for C structure.public int getBaudGen()
Gives value of BaudGen member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
public int getTimer0Reload()
Gives value of Timer0Reload member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
public int getPrescaler()
Gives value of Prescaler member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
public int getBaudRate()
Gives value of BaudRate member in the C structure 'BAUD_CONFIG' defined in CP210XManufacturingDLL.h header file.
public void dumpBaudInfo()
Prints information about baudrate on console.
Copyright © 2016. All rights reserved.