mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
* code for controlling the Card slot + frequencyt divider muxes * put everything in place to build cardem application for it Change-Id: I7e03e0c0f2999a1ce2dad966d98e22033fa58465
17 lines
388 B
C
17 lines
388 B
C
#pragma once
|
|
|
|
void mux_init(void);
|
|
void mux_set_slot(uint8_t s);
|
|
void mux_set_freq(uint8_t s);
|
|
|
|
/* this reflects the wiring between U5 and U4 */
|
|
#define MUX_FREQ_DIV_2 0
|
|
#define MUX_FREQ_DIV_4 1
|
|
#define MUX_FREQ_DIV_16 2
|
|
#define MUX_FREQ_DIV_32 3
|
|
#define MUX_FREQ_DIV_32 3
|
|
#define MUX_FREQ_DIV_128 4
|
|
#define MUX_FREQ_DIV_512 5
|
|
#define MUX_FREQ_DIV_2048 6
|
|
#define MUX_FREQ_DIV_4096 7
|