Juan Silva

In My_Wireless_App there are two files called "MC9S0...

Discussion created by Juan Silva on Dec 6, 2008
Latest reply on Dec 9, 2008 by Ake Webjorn
In My_Wireless_App there are two files called "MC9S08gt60.c" and "MC9S08gt60.h." In this file are given the registers of status, control and configuration of the AD converter. To access these registers do, for example
# include "MC9S08gt60.h."

However, I can not have access to the values of those registers.

In "MC9S08gt60.h" they are defined as follows:

typedef union {
    Byte Byte;
    struct {
       "registers"
    }Bits;
  } AT1SC;

How do I configure these registers?

Outcomes