Skip to content
Strahinja Jacimovic edited this page Apr 29, 2021 · 2 revisions

mikroSDK API

Application programming interfaces (APIs) abstract device-specific components, allowing access to MCU features without needing to interact with lower-level software or hardware. APIs simplify and accelerate application software development and code reuse across mikroSDK platform.

Driver Layer

The Drivers API allows access to interface with general purpose microcontroller functionality. This layer saves developers time since they no longer need to reinvent commonly used services and do not typically need to interface directly with the hardware. This enables shorter development cycles, rapid prototyping and code re-use on different hardware platforms.

Following drivers are available:

Driver Description
Digital Out Digital out driver interface to configure and control a digital output pin.
Digital In Digital in driver interface to configure and read a digital input pin.
Port Port driver interface to configure and read/write a digital port.
Analog In Analog in driver interface to configure and read analog value.
I2C Master I2C Master driver interface to configure and communicate via I2C serial bus.
SPI Master SPI Master driver interface to configure and communicate via SPI serial bus.
UART UART driver interface to configure and communication with UART devices.
PWM PWM driver interface to configure and control pulse-width modulation.

Hardware Abstraction Layer

Hardware Abstraction Layer ( HAL ) 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.

HAL Driver Description
GPIO HAL API for configuring and manipulating GPIO HAL module.
ADC HAL API for configuring and manipulating ADC HAL module.
I2C Master HAL API for configuring and manipulating I2C Master HAL module.
SPI Master HAL API for configuring and manipulating SPI Master HAL module.
UART HAL API for configuring and manipulating UART HAL module.
PWM HAL API for configuring and manipulating PWM HAL module.

Application Framework

Collection of individual frameworks providing rich functionalities for application development.

Library Description
Graphic Library Graphic library interface for drawing graphical primitives to display.
Touch Panel Touch panel library interface to configure and get input from touch panel device.
Visual TFT Visual TFT library interface to create Graphical User Interfaces.
Logger Logger library interface to write log messages to output device.
SSD1963 API for configuring and manipulating SSD1963 Display Controller driver.
FT5xx6 Touch Controller API for configuring and manipulating FT5xx6 Touch Controller driver.

mikroBUS

mikroBUS module provides macro definitions for mapping pins form mikroBUS slots to target MCU on board.

Library Description
mikroBUS The library for mikroBUS pins utility macros.