BlackLib library is wrote for controlling Beaglebone Black's feature. It takes power from C++ language. It is created for reading analog input, generating pwm signal and using gpio pins. In addition to them, it includes debugging feature. So you can check errors after call any function in the library.
Debugging
It always tracks member functions errors and records these errors to data structures. All end nodes which interact with end users, have overloaded fail() functions. So you can check all errors or specific error whichever you want.
Class Hierarchy
Library Core
BlackLib includes BlackCore class for doing core process. End users can't access to it. Because it is abstract class and all member functions, except constructor and destructor, are private or protected.
Sub Level Cores
BlackLib includes sub level cores for GPIO, ADC and PWM features. Preparing, device tree loading or initialization stages are realized in here, at sub level cores. Therefore, if you don't like end nodes or you don't want to use these, you can derive your own class(es), from these sub level cores. But end nodes designed for taking care of your all need.
End Node Classes
End node classes are designed for interacting with end user. You can read, set or control Beaglebone Black's ADC, GPIO or PWM features from these classes. These classes include primary functions like read or set properties of Beaglebone Black's features and include additional functions like ADC parser, gpio pin toggle etc. to make easier your life.
Definitions
BlackLib includes enum type definitions for your and Beaglebone Black's safety. GPIO, ADC, PWM names; PWM, GPIO values; GPIO directions and a lot more features defined with enums. It means you can't call some member functions without use this enums. These enums avoid user errors like write 345 to gpio export file instead of 34.
Contact
For any comment or suggestion please contact the creator of BlackLib Library at contact@blacklib.yigityuce.com
Homepage: http://blacklib.yigityuce.com
ygtyce
![](https://gravatar.com/avatar/247bc2c3ba164d4ef8d69930d109ce29.png?d=retro&s=40)
Comments