GithubHelp home page GithubHelp logo

nimaltd / rfid Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 2.0 19 KB

RFID EM-18,EM-19 module Library for STM32 HAL

License: GNU General Public License v3.0

C 100.00%
rfid stm32 em-18 em-19 125khz rfid125khz rfid-reader library hal hal-library rfid-uart

rfid's Introduction

RFID EM-18,EM-19 module Library for STM32 HAL

I use Stm32f103c8 and Keil Compiler and Stm32CubeMX wizard.


Please Do This ...

1) Config your usart and enable RX interrupt (9600,1,1) on CubeMX.
2) Select "General peripheral Initalizion as a pair of '.c/.h' file per peripheral" on project settings.
3) Config your RFID_Config.h file.
4) Add RFID_CallBack() on usart interrupt routin.
5) Call RFID_Init().
6) Put RFID_Loop() in your main or a task.
Example:
#include "RFID.h"
.
.
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
  if(huart->Instance == USART2)
  {
    RFID_CallBack();    
  }  
}
.
.
int main()
{
  .
  .
  RFID_Init();
  .
  .
  while(1)
  {
    .
    .
    RFID_Loop();
    .
    . 
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.