Applying C For The IoT With Linux, Paperback Book, By: Harry Fairhead
Description
Applying C is the book you need if you are programming for Single Board Computers (SBCs) that run Linux, or if you do any coding in C that interacts with the hardware. As there isn't a good name for this body of knowledge, it isn't easy to find a single source for it. This book gathers together all of these low-level, hardware-oriented and often hardware-specific ideas. As such it is a moderately advanced book. This is not to say that it is difficult, but it does presuppose that you already know how to program in C and that you know the basic idioms of C. Starting off from the very simple task of making a program run automatically, we look at how your program works with user-mode Linux. If you are working with hardware, arithmetic cannot be ignored and separate chapters are devoted to integer, fixed-point and floating-point arithmetic. Equally, to handle I/O you need to have a good grasp of files and the pseudo file system. The dev/mem file coupled with memory-mapped files makes it possible to work with raw memory without leaving user mode. Sockets are general-purpose way of communicating over networks and similar infrastructure and here the focus is on sending data over the internet and for this we build a web client and a server. Next we consider graphics, which you might find unusual in a book on small systems, but today even small systems have GPUs and graphics comes as standard. It is common to think of adding low-cost output devices such as 7-segment displays to IoT devices, but with low cost HDMI/DVI displays available it becomes cost effective to simply use the built-in graphics hardware. After this we turn to the idea of multi-tasking using Pthreads. As well as looking at threads, we consider locking, using mutex and condition variables, and scheduling. Although interrupts don't exist in user-mode Linux, we can get very close using poll and threading. Now that multiple cores are a feature of even low-cost SBC, in later chapters we cover managing cores, look at C11's atomics and introduce its memory models and barriers. Finally we take a short look at how to mix assembler with C. Harry Fairhead has a hardware background and, having worked with microprocessors and electronics in general, for many years, he is an enthusiastic proponent of the IoT. He is the author of Fundamental C: Getting Closer To The Machine and his other recent titles include Raspberry Pi IoT in C and Micro: bit IoT in C.
Price history chart & currency exchange rate
Customers also viewed
![Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary (Paperback or Softback)
Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary (Paperback or Softback)](http://pictures.abebooks.com/isbn/9780596001087-us.jpg)
30%
$18.60
Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary (Paperback or Softback)
abebooks.com![Ready Aim Fire: Major James Francis Thomas: The Fourth Victim in the Execution of Lieutenant Harry Breaker Morant (Paperback or Softback)
Ready Aim Fire: Major James Francis Thomas: The Fourth Victim in the Execution of Lieutenant Harry Breaker Morant (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781925230505-us.jpg)
20%
$16.78
Ready Aim Fire: Major James Francis Thomas: The Fourth Victim in the Execution of Lieutenant Harry Breaker Morant (Paperback or Softback)
abebooks.com![The Iot Hacker's Handbook: A Practical Guide to Hacking the Internet of Things (Paperback or Softback)
The Iot Hacker's Handbook: A Practical Guide to Hacking the Internet of Things (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781484242995-us.jpg)
17%
$33.79
The Iot Hacker's Handbook: A Practical Guide to Hacking the Internet of Things (Paperback or Softback)
abebooks.com![Masters of Mystery: The Strange Friendship of Arthur Conan Doyle and Harry Houdini (Paperback or Softback)
Masters of Mystery: The Strange Friendship of Arthur Conan Doyle and Harry Houdini (Paperback or Softback)](http://pictures.abebooks.com/isbn/9780230342033-us.jpg)
13%
$18.76
Masters of Mystery: The Strange Friendship of Arthur Conan Doyle and Harry Houdini (Paperback or Softback)
abebooks.com![Blood and Fire: The Duke of Windsor and the Strange Murder of Sir Harry Oakes. (P/B) (Paperback or Softback)
Blood and Fire: The Duke of Windsor and the Strange Murder of Sir Harry Oakes. (P/B) (Paperback or Softback)](http://pictures.abebooks.com/isbn/9789768184955-us.jpg)
7%
$16.72
Blood and Fire: The Duke of Windsor and the Strange Murder of Sir Harry Oakes. (P/B) (Paperback or Softback)
abebooks.com![Linux para hackers: Una gu�a completa para principiantes para el mundo del hackeo utilizando Linux (Paperback or Softback)
Linux para hackers: Una gu�a completa para principiantes para el mundo del hackeo utilizando Linux (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781913597214-us.jpg)
1%
$16.74
Linux para hackers: Una gu�a completa para principiantes para el mundo del hackeo utilizando Linux (Paperback or Softback)
abebooks.com![The Politics of Place: Montesquieu, Particularism, and the Pursuit of Liberty (Paperback or Softback)
The Politics of Place: Montesquieu, Particularism, and the Pursuit of Liberty (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781648250521-us.jpg)
1%
$28.78
The Politics of Place: Montesquieu, Particularism, and the Pursuit of Liberty (Paperback or Softback)
abebooks.com![What Good Is Grand Strategy: Power and Purpose in American Statecraft from Harry S. Truman to George W. Bush (Paperback or Softback)
What Good Is Grand Strategy: Power and Purpose in American Statecraft from Harry S. Truman to George W. Bush (Paperback or Softback)](http://pictures.abebooks.com/isbn/9780801456732-us.jpg)
1%
$17.39
What Good Is Grand Strategy: Power and Purpose in American Statecraft from Harry S. Truman to George W. Bush (Paperback or Softback)
abebooks.com![Rape, the Least Condemned War Crime. Human Rights are not Women's Rights (Paperback or Softback)
Rape, the Least Condemned War Crime. Human Rights are not Women's Rights (Paperback or Softback)](http://pictures.abebooks.com/isbn/9783668918986-us.jpg)
1%
$43.97
Rape, the Least Condemned War Crime. Human Rights are not Women's Rights (Paperback or Softback)
abebooks.com![Religion and Republic: Christian American from the Founding to the Civil War (Paperback or Softback)
Religion and Republic: Christian American from the Founding to the Civil War (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781949716313-us.jpg)
1%
$35.49
Religion and Republic: Christian American from the Founding to the Civil War (Paperback or Softback)
abebooks.com![Harry Potter Christmas Family Matching Character Print Long-sleeve Pajamas Sets (Flame Resistant)
Harry Potter Christmas Family Matching Character Print Long-sleeve Pajamas Sets (Flame Resistant)](http://image.yfswebstatic.com/origin/product/oc/clothing/shooting/66a8a6abe810e.jpg)
+6%
1%
$17.99
Harry Potter Christmas Family Matching Character Print Long-sleeve Pajamas Sets (Flame Resistant)
patpat.com![Literature Review Simplified: A Practical Guide for Beginners Second Edition (Paperback or Softback)
Literature Review Simplified: A Practical Guide for Beginners Second Edition (Paperback or Softback)](http://pictures.abebooks.com/isbn/9789198900828-us.jpg)
1%
$24.96
Literature Review Simplified: A Practical Guide for Beginners Second Edition (Paperback or Softback)
abebooks.com![Miocene Fishes of Southern California: Geological Society of America, No. 43 (Paperback or Softback)
Miocene Fishes of Southern California: Geological Society of America, No. 43 (Paperback or Softback)](http://pictures.abebooks.com/isbn/9781258365332-us.jpg)
1%
$32.11
Miocene Fishes of Southern California: Geological Society of America, No. 43 (Paperback or Softback)
abebooks.com![Разблокированный оригинальный беспроводной мобильный Карманный роутер Huawei E8259 3G WIFI
Разблокированный оригинальный беспроводной мобильный Карманный роутер Huawei E8259 3G WIFI](http://ae04.alicdn.com/kf/H0531182613b24f458194f49d1ec54195n.jpg)
1%
$36.54
Разблокированный оригинальный беспроводной мобильный Карманный роутер Huawei E8259 3G WIFI
aliexpress.ru![Hello Kitty Kuromi My Melody Kawaii Cigarette Case Anime Portable Cartoon Girls Anti-Wrinkle Cigarettes Storage Container Gifts
Hello Kitty Kuromi My Melody Kawaii Cigarette Case Anime Portable Cartoon Girls Anti-Wrinkle Cigarettes Storage Container Gifts](http://ae04.alicdn.com/kf/S4505ab8077e043f381fa024c1a1a9160s.jpg)
1%
$3.59
Hello Kitty Kuromi My Melody Kawaii Cigarette Case Anime Portable Cartoon Girls Anti-Wrinkle Cigarettes Storage Container Gifts
aliexpress.com![NEW Plasma Cutter Electrode Fixed Cap Consumable Kit Fit for CUT30 PC210 SC30 LC25 Torch Parker Surecut SCP2524-10 SCP2504
NEW Plasma Cutter Electrode Fixed Cap Consumable Kit Fit for CUT30 PC210 SC30 LC25 Torch Parker Surecut SCP2524-10 SCP2504](http://ae04.alicdn.com/kf/S82104fdd1de84ce7b16e98b7d256fc87u.jpg)
1%
$22.28
NEW Plasma Cutter Electrode Fixed Cap Consumable Kit Fit for CUT30 PC210 SC30 LC25 Torch Parker Surecut SCP2524-10 SCP2504
aliexpress.com