Search:

Type: Posts; User: Nikosant03

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. It works fine, thanks!!

    It works fine, thanks!!
  2. I will try thanks!!

    I will try thanks!!
  3. Passing argument to function enumerator that is member of a struct

    Hi everyone,

    I will to explain as clear as I can..

    I have an enum inside a struct like this below in a seperate file than .c (the struct has many members, just for simplicity I added one now):...
  4. Replies
    8
    Views
    236

    Thank you Salem, So far this is the backbone I...

    Thank you Salem,

    So far this is the backbone I am thinking to follow:

    1. Create a header file and define registers, declare functions, and create structures
    2. Create a .c file and define the...
  5. Replies
    8
    Views
    236

    I will read from the chip using the driver and...

    I will read from the chip using the driver and then I will send the data through BLE to the central
    - I wrote the code to send the data over BLE

    I believe that I used wrong terminology.. I want...
  6. Replies
    8
    Views
    236

    No there is not any OS.

    No there is not any OS.
  7. Replies
    8
    Views
    236

    Hi Salem and thank you for you reply, Thank...

    Hi Salem and thank you for you reply,

    Thank you for your reply. I am running a windows machine (if this is what you mean) and I will use the nRF52840 SoC which integrates Arm Cortex-M4F 32-bit...
  8. Replies
    8
    Views
    236

    How to write a driver in C for an IC

    Hi everyone,


    I want to try to write a driver for this battery fuel gauge http://www.ti.com/lit/ds/symlink/bq27421-g1.pdf?ts=1588097914776.

    This is my first attempt of writing a driver and it...
  9. Replies
    7
    Views
    111

    Thank you very much!!

    Thank you very much!!
  10. Replies
    7
    Views
    111

    typedef int8_t BSX_S8; /**< signed...

    typedef int8_t BSX_S8; /**< signed char */
    typedef uint8_t BSX_U8; /**< unsigned char */

    BSX_S8 bsx_init(initParam_t*);




    typedef struct {
    BSX_U8 *accelspec;
  11. Replies
    7
    Views
    111

    Thank you guys!! I didn't, I was just...

    Thank you guys!!


    I didn't, I was just reading the integration guide.

    Also, I found this syntax into another documentation and I'm not sure why they're doing this.. I know that this is a...
  12. Replies
    7
    Views
    111

    Passing struct pointer to function

    Hi everyone,

    I'm trying to integrate a library (BSXlite Library) into by code and I cannot understand how they pass struct pointer to function.. well this the structure



    typedef struct {
    ...
  13. Replies
    2
    Views
    137

    Thanks Zeus_!!

    Thanks Zeus_!!
  14. Replies
    2
    Views
    137

    tupedef datatypes

    Hi evereyone,

    I've seen in many libraries to define new data types names. For example I was looking this



    /** C99 standard */
    typedef int16_t BSX_S16; /**< signed short */
    ...
  15. Replies
    7
    Views
    229

    Great answer!! Thank you for the sample code!!

    Great answer!! Thank you for the sample code!!
  16. Replies
    7
    Views
    229

    Thank you guys, now I can see how it works....

    Thank you guys, now I can see how it works. Basically anything besides 000 is a TRUE isn't it? I analyzed the function and the results are clear

    MUX_CTRL_CHA = 3
    1 = 001


    channel = 0(000)...
  17. Replies
    7
    Views
    229

    Bitwise operators

    Hi, could someone explain me how the if statement works in the snippet below? Despite the fact that I know how bitwise works I cannot understand when the
    channel & (1 << i) will be TRUE and when...
  18. Replies
    6
    Views
    277

    Thanks Salem!!

    Thanks Salem!!
  19. Replies
    6
    Views
    277

    Could you explain?

    Could you explain?
  20. Replies
    6
    Views
    277

    Thanks for your ptompt answer!! Also, these...

    Thanks for your ptompt answer!!

    Also, these syntax are equivalent?



    typedef struct{
    ble_cus_evt_type_t evt_type;
    } ble_cus_evt_t;
  21. Replies
    6
    Views
    277

    typedef struct

    Hi everyone,

    I came across with this chunk of code



    struct ble_blink_s {
    uint16_t service_handler;
    uint8_t service_type;
    };
  22. Replies
    1
    Views
    149

    Structures syntax

    Hi everyone!! Could someone explain me the structure below? I know about structures and their syntax but first time I see something like this. It's like accesing the members inside the structure.....
  23. Thread: C++ Classes

    by Nikosant03
    Replies
    1
    Views
    300

    C++ Classes

    Hi everyone, I am studing on classes and I found an example that I cannot figure out how it works


    class Distance{
    private:
    int feet;
    int inch;
    public:
    Distance...
  24. Replies
    3
    Views
    326

    I tried to assign but it didn't work. I tried...

    I tried to assign but it didn't work. I tried this


    ReadSensor sensorFunctions[0] = floatFunction;
  25. Replies
    3
    Views
    326

    Dynamic populate array of functions

    Hi everyone,

    I have created a function array. My question is, is it possible to dynamically populate the function array based on some criteria each time? I want to have a loop that will check some...
Results 1 to 25 of 31
Page 1 of 2 1 2