mikroSDK Reference Manual
|
This section includes the mikroSDK API Reference for the Microcontroller Peripherals. More...
Modules | |
Driver Layer | |
This section includes the mikroSDK API Reference for the Driver. | |
Hardware Abstraction Layer | |
This section includes the mikroSDK API Reference for the Hardware Abstraction Layer. | |
Important information in regards to CUSTOM One Wire timing.
Microcontroller Peripherals can be separated into two hierarchical layers - Driver and Hardware Abstraction Layer :
Device drivers are the software libraries that initialize the hardware and manage access to the hardware by higher layers of software. Device drivers are the architecture independent liaison between the hardware and the middleware, application layers and plugins.
Hardware Abstraction Layer is a layer of code that allows driver interaction with a hardware device at a general or abstract level rather than at a detailed hardware level. HAL can be called from either the DRV layer or directly from user code. In either case, the calling program can interact with the device in a more general way than it would otherwise.
WARNING
One Wire library is currently utilizing recommended "Maxim Integrated" One Wire timing sequences. If, by any chance, end-user needs custom timing sequences, "weak" functions shall be overwritten by end-user functions. Declaration of those functions can be found at following location: "\mikrosdk-2.0\hal\lib\include\hal_one_wire.h"
Declarations: void one_wire_timing_value_a( void ); void one_wire_timing_value_b( void ); void one_wire_timing_value_c( void ); void one_wire_timing_value_d( void ); void one_wire_timing_value_e( void ); void one_wire_timing_value_f( void ); void one_wire_timing_value_h( void ); void one_wire_timing_value_i( void ); void one_wire_timing_value_j( void );
Example
Implementation example:
WARNING
One Wire library is currently utilizing recommended "Maxim Integrated" One Wire timing sequences. If, by any chance, end-user needs custom timing sequences, "weak" functions shall be overwritten by end-user functions. Declaration of those functions can be found at following location: "\mikrosdk-2.0\hal\lib\include\hal_one_wire.h"
Declarations: void one_wire_timing_value_a( void ); void one_wire_timing_value_b( void ); void one_wire_timing_value_c( void ); void one_wire_timing_value_d( void ); void one_wire_timing_value_e( void ); void one_wire_timing_value_f( void ); void one_wire_timing_value_h( void ); void one_wire_timing_value_i( void ); void one_wire_timing_value_j( void );
Example
Implementation example: