13 #ifndef PHILIP_TYPEDEF_H 14 #define PHILIP_TYPEDEF_H 38 uint8_t addr_10_bit : 1;
39 uint8_t general_call : 1;
40 uint8_t no_clk_stretch : 1;
41 uint8_t reg_16_bit : 1;
42 uint8_t reg_16_big_endian : 1;
43 uint8_t nack_data : 1;
64 uint8_t reg_16_bit : 1;
65 uint8_t reg_16_big_endian : 1;
75 uint8_t start_clk : 1;
77 uint8_t index_err : 1;
85 uint16_t stop_bits : 1;
88 uint16_t data_bits : 1;
105 uint16_t io_type : 2;
108 uint16_t tick_div : 5;
116 uint8_t set_level : 1;
131 uint8_t fast_sample : 1;
139 uint8_t trig_edge : 2;
331 uint8_t tick_div[128];
342 uint8_t user_reg[256];
basic_mode_t mode
Definition: PHiLIP_typedef.h:303
uint16_t min_holdoff
Definition: PHiLIP_typedef.h:293
uint32_t baud
Definition: PHiLIP_typedef.h:238
spi_mode_t mode
Definition: PHiLIP_typedef.h:210
sys_t sys
Definition: PHiLIP_typedef.h:343
uint8_t day_of_week
Definition: PHiLIP_typedef.h:157
Controls the RTC.
Definition: PHiLIP_typedef.h:301
uint32_t sum
Definition: PHiLIP_typedef.h:255
uint16_t state
Definition: PHiLIP_typedef.h:192
uint32_t max_tick
Definition: PHiLIP_typedef.h:295
uint8_t hour
Definition: PHiLIP_typedef.h:155
sys_mode_t mode
Definition: PHiLIP_typedef.h:176
uint8_t second
Definition: PHiLIP_typedef.h:153
uint16_t rx_count
Definition: PHiLIP_typedef.h:240
uint8_t set_second
Definition: PHiLIP_typedef.h:308
uint16_t slave_addr_1
Definition: PHiLIP_typedef.h:190
Controls DAC values.
Definition: PHiLIP_typedef.h:278
Controls and provides information for the uart.
Definition: PHiLIP_typedef.h:231
Controls GPIO settings.
Definition: PHiLIP_typedef.h:318
uint32_t l_ticks
Definition: PHiLIP_typedef.h:271
Basic mode settings.
Definition: PHiLIP_typedef.h:144
Time and date.
Definition: PHiLIP_typedef.h:151
uint16_t start_reg_index
Definition: PHiLIP_typedef.h:194
uint32_t prev_ticks
Definition: PHiLIP_typedef.h:224
uint32_t index
Definition: PHiLIP_typedef.h:253
uint32_t device_num
Definition: PHiLIP_typedef.h:173
UART status.
Definition: PHiLIP_typedef.h:93
uint8_t w_count
Definition: PHiLIP_typedef.h:220
i2c_t i2c
Definition: PHiLIP_typedef.h:344
uint8_t month
Definition: PHiLIP_typedef.h:158
uint16_t clk_stretch_delay
Definition: PHiLIP_typedef.h:189
SPI status.
Definition: PHiLIP_typedef.h:69
timestamp_t build_time
Definition: PHiLIP_typedef.h:172
uint8_t mask_msb
Definition: PHiLIP_typedef.h:239
System settings for the device.
Definition: PHiLIP_typedef.h:183
gpio_mode_t mode
Definition: PHiLIP_typedef.h:320
IO pin mode control.
Definition: PHiLIP_typedef.h:103
SPI mode settings.
Definition: PHiLIP_typedef.h:58
Controls and calculates PWM values.
Definition: PHiLIP_typedef.h:264
uint32_t w_ticks
Definition: PHiLIP_typedef.h:198
i2c_status_t status
Definition: PHiLIP_typedef.h:186
Controls timer input capture values.
Definition: PHiLIP_typedef.h:289
gpio_status_t status
Definition: PHiLIP_typedef.h:321
trace_t trace
Definition: PHiLIP_typedef.h:353
uint64_t tick
Definition: PHiLIP_typedef.h:171
tmr_mode_t mode
Definition: PHiLIP_typedef.h:291
adc_t adc
Definition: PHiLIP_typedef.h:348
IO pin status.
Definition: PHiLIP_typedef.h:122
uart_status_t status
Definition: PHiLIP_typedef.h:242
basic_mode_t mode
Definition: PHiLIP_typedef.h:266
uint16_t day
Definition: PHiLIP_typedef.h:307
uint32_t min_tick
Definition: PHiLIP_typedef.h:294
Simplified GPIO for periph GPIO control.
Definition: PHiLIP_typedef.h:113
tmr_t tmr
Definition: PHiLIP_typedef.h:351
uint16_t state
Definition: PHiLIP_typedef.h:216
uint32_t num_of_samples
Definition: PHiLIP_typedef.h:252
uint32_t f_w_ticks
Definition: PHiLIP_typedef.h:201
uint8_t year
Definition: PHiLIP_typedef.h:159
uint16_t set_day
Definition: PHiLIP_typedef.h:311
System status.
Definition: PHiLIP_typedef.h:28
uint8_t counter
Definition: PHiLIP_typedef.h:257
Controls and reads the ADC.
Definition: PHiLIP_typedef.h:248
I2C mode settings.
Definition: PHiLIP_typedef.h:35
The memory map.
Definition: PHiLIP_typedef.h:340
uint8_t r_count
Definition: PHiLIP_typedef.h:195
uart_mode_t mode
Definition: PHiLIP_typedef.h:233
ADC mode settings.
Definition: PHiLIP_typedef.h:128
System settings for PHiLIP.
Definition: PHiLIP_typedef.h:166
spi_t spi
Definition: PHiLIP_typedef.h:345
uint32_t r_ticks
Definition: PHiLIP_typedef.h:197
uint16_t level
Definition: PHiLIP_typedef.h:282
uint16_t tx_count
Definition: PHiLIP_typedef.h:241
I2C status.
Definition: PHiLIP_typedef.h:47
adc_mode_t mode
Definition: PHiLIP_typedef.h:250
uint8_t minute
Definition: PHiLIP_typedef.h:305
spi_status_t status
Definition: PHiLIP_typedef.h:211
dac_t dac
Definition: PHiLIP_typedef.h:350
uint8_t day_of_month
Definition: PHiLIP_typedef.h:156
uint32_t byte_ticks
Definition: PHiLIP_typedef.h:223
uint32_t current_sum
Definition: PHiLIP_typedef.h:256
uint32_t period
Definition: PHiLIP_typedef.h:269
uint8_t second
Definition: PHiLIP_typedef.h:304
uint32_t f_r_ticks
Definition: PHiLIP_typedef.h:200
rtc_t rtc
Definition: PHiLIP_typedef.h:347
uint32_t s_ticks
Definition: PHiLIP_typedef.h:199
pwm_t pwm
Definition: PHiLIP_typedef.h:349
uint8_t transfer_count
Definition: PHiLIP_typedef.h:221
uint8_t minute
Definition: PHiLIP_typedef.h:154
uint8_t set_minute
Definition: PHiLIP_typedef.h:309
uint32_t h_ticks
Definition: PHiLIP_typedef.h:270
sys_status_t status
Definition: PHiLIP_typedef.h:175
uint16_t reg_index
Definition: PHiLIP_typedef.h:193
uint8_t hour
Definition: PHiLIP_typedef.h:306
Controls and provides information for the spi.
Definition: PHiLIP_typedef.h:208
uint16_t sample
Definition: PHiLIP_typedef.h:254
uint32_t index
Definition: PHiLIP_typedef.h:330
uint32_t sys_clk
Definition: PHiLIP_typedef.h:174
Timer mode settings.
Definition: PHiLIP_typedef.h:136
uint8_t set_hour
Definition: PHiLIP_typedef.h:310
i2c_mode_t mode
Definition: PHiLIP_typedef.h:185
uint8_t w_count
Definition: PHiLIP_typedef.h:196
uint16_t duty_cycle
Definition: PHiLIP_typedef.h:268
uint16_t slave_addr_2
Definition: PHiLIP_typedef.h:191
UART mode settings.
Definition: PHiLIP_typedef.h:81
basic_mode_t mode
Definition: PHiLIP_typedef.h:280
Saved timestamps and events.
Definition: PHiLIP_typedef.h:328
uint32_t frame_ticks
Definition: PHiLIP_typedef.h:222
uint8_t r_count
Definition: PHiLIP_typedef.h:219
uint16_t start_reg_index
Definition: PHiLIP_typedef.h:218
System mode settings.
Definition: PHiLIP_typedef.h:21
uint16_t reg_index
Definition: PHiLIP_typedef.h:217