BlackLib C++ Library
Beaglebone Black C++ Library for GPIO, ADC and PWM
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.
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.
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.
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 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.
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.
For any comment or suggestion please contact the creator of BlackLib Library at [email protected]
Projected created on: Tue Apr 29 2014 16:15:31 GMT-0000 (UTC)
Submitted by: ygtyce
Last updated on: Tue Apr 29 2014 21:06:15 GMT-0000 (UTC)