![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Diff: all_funcs.h
- Revision:
- 8:607ae92fa6af
- Child:
- 11:d6dc9074075b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/all_funcs.h Sat Jul 04 08:56:34 2015 +0000 @@ -0,0 +1,83 @@ +/*PL functions*/ +void FCTN_PL_INIT(); +void FCTN_PL_MAIN(); +void FCTN_PL_RCV_SC_DATA(); +/*End*/ + +/*ISR functions*/ +void ISR_PL_RCV_SC_DATA(); +void ISR_CDMS_RLY_TC(); +void ISR_CDMS_RLY_TM(); +/*End*/ + +/*CDMS functions*/ +void FCTN_CDMS_INIT(); +void FCTN_CDMS_MAIN(); +/*End*/ + +/*Flash functions*/ +void FCTN_CDMS_RD_FLASH(); +void FCTN_CDMS_WR_FLASH(); +void FCTN_CDMS_GET_FLASH_CRC(); +/*End*/ + +/*RAM functions*/ +void FCTN_CDMS_RD_RAM(); +void FCTN_CDMS_WR_RAM(); +/*End*/ + +/*RTC functions*/ +void FCTN_INIT_RTC(); +void FCTN_CDMS_RD_RTC(uint8_t *); +/*End*/ + +/*I2C functions*/ +void FCTN_I2C_READ(char *data,int length = 1); +void FCTN_I2C_WRITE(char *data,int length = 1); +void FCTN_MASTER_I2C(char i2c_data_type , char* i2c_data); +/*End*/ + +/*SDCard functions*/ +int *FCTN_INIT_SD(); +int FCTN_WR_SD(const uint8_t *, uint64_t); +int FCTN_RD_SD(uint8_t *, uint64_t); +void FCTN_CDMS_MNG_SD(); +int initialise_card(); +int initialise_card_v2(); +int disk_initialize(); +int cmd(int, int); +int cmd58(); +int cmdx(int, int); +int cmd8(); +uint64_t sd_sectors(); +int read(uint8_t*, uint32_t ); +int write(const uint8_t*, uint32_t ); +static uint32_t ext_bits(unsigned char *, int , int ); +/*End*/ + +/*COM functions*/ +void FCTN_COM_INIT(); +void FCTN_COM_RCV_TC(); +void FCTN_COM_MNGR_TMTC(); +void FCTN_COM_SND_TM(); +void FCTN_COM_SD_TM(); +void FCTN_COM_COMP_SC_DATA(); +/*End*/ + +/*HK functions*/ +void FCTN_CDMS_HK_INIT(); +char* FCTN_CDMS_HK_MAIN(); +int quantiz(float l_start,float l_step,float l_x); +void FCTN_HK_MAIN(); +/*End*/ + +/*Power functions*/ +void FCTN_POWER_MODE(int SOC); +void FCTN_CDMS_SWCH_PWR(); +void FCTN_CDMS_RST_PWR(); +/*End*/ + +/*TCTM functions*/ +void FCTN_CDMS_RLY_TC(); +void FCTN_CDMS_RLY_TM(); +/*End*/ \ No newline at end of file