Embedded C Programming Style: Tutorial 5 - Structures

preview_player
Показать описание
This video details the programming style rules and common uses of Structures in Embedded C.

6:18 2.PascalCase
10:20 Usage of struct
10:41 a.Data hiding and object orientation
30:33 b.Structure bitfields
Рекомендации по теме
Комментарии
Автор

How did you cross paths with M. Kemal Atatürk? I was both curious and proud of you. (:

semihk
Автор

hey bro, your courses are incredible, could you recommend a book where all these rules come from? greetings from Mexico

joelarmy
Автор

In your case its legit cast to a byte, cuz u have no offset in struct and there is nothing to align and padding for compiler mem optimization.

pavelkravchenko
Автор

Thank you bro for those videos 😍, i highly recommend to change the titles to "Professional Embedded C Programming : Topic..." or something like that

ahmedlapyap
Автор

Thanks for this. I didn't want to have to learn C++ but now you showed how to make objects in C. There is no easy way to read the bit fields without shifting.

noweare
Автор

Great video series! Are the source files from the videos available for Download?

johnfriede
Автор

Thanks for the great content you share. Is there a way to produce the same behavior without dynamic allocation?
Also, when you mentioned 38:40 that we shouldn't typecast the one-byte bitfield struct (compiler specific), you are talking about endianness ?

abdelfatteh_abidi
Автор

Thanks for this it's really helpful. Following your coding on tutorial 5 I got this error
"
undefined reference to 16 C/C++ Problem" . Could you please check it for me?

gbenguzi
Автор

Hey, your content are great.
I have a question regarding the malloc u did to allocate memory. Isn't it bad practice to do dynamic allocation in embedded C?

MrXan
Автор

Dude, you should have speraten last 15 minute as "accessing registers with bitwise operators" YT video. It is actually huge topic.
By the way are you Turkish?

coderhex
Автор

Thank you for your contribution.
The picture on the table surprised me very much.

mehmetinci
Автор

Love this series so far! keep it up sir

jamesdulangon
Автор

Sir, If posible could you give one course for STM 32 basedAC motor control VFD

rameshganesan
Автор

you are amazing bro, and your explanation it is very understandable. I'll subscribe now

MrCuasjoe
Автор

Thank you for the informative videos.
I may suggest you might want to reduce the audio reflections in the room somehow.. the audio seems to have a lot of harsh reverb going on.
Placing fabrics such as blankets, sheets and pillows on the walls/floor and other hard surfaces out of camera can help with this.. seems the room you are recording in has all hard surfaces causing the audio to sound very sterile.
I look forward to watching more of your videos in the future, many thanks in advance!

Synthetech
Автор

Thank you sir this kind of praticle teaching are really required and help a lot. Thank s for this knowledge sharing ❤️❤️

eaglehunt
Автор

great tutorial Mohammed, regarding bit field type casting. is this because of compiler padding ? so would it still be risky if we packed the struct?

hasanalattar
Автор

Great video!!!!
from 40:57 why have you taken 0x07 mask for reserved and 0x03 mask for afs_sel?
Does afs_sel [1:0] mean that you have 1 at the bit 4 and 0 at the bit 3 ?
Thanks!!!

nysseexaucekaya