This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:libschsat [2018/01/25 14:46] ashley |
en:libschsat [2018/01/25 15:26] ashley |
||
---|---|---|---|
Line 93: | Line 93: | ||
int bus_setup(void); | int bus_setup(void); | ||
- | Prepare all devices on the bus to receive information. By default devices after turning on or reboot can start the exchange only after at least one sending is complete on the bus (for any device), this function simply sends an empty message addressed to all. | + | Prepares all devices on the bus to receive information. By default, after turning on or rebooting, the devices start the exchange only after at least one message has been completed on the bus (for any device). This function simply sends an empty message addressed to all. |
int sun_sensor_get_state(uint16_t num); | int sun_sensor_get_state(uint16_t num); | ||
- | The function returns current state of [[sun_subsys|the solar sensor]] number **num** (on/off) | + | The function returns the current state of [[sun_subsys|the solar sensor]] number **num** (on/off) |
int sun_sensor_request_maxraw(uint16_t num, uint16_t *pMAXRAW_data1, uint16_t *pMAXRAW_data2); | int sun_sensor_request_maxraw(uint16_t num, uint16_t *pMAXRAW_data1, uint16_t *pMAXRAW_data2); | ||
The function returns LSS_OK and writes the current maximums of [[sun_subsys| the solar sensor]] number **num** in the variables pMAXRAW_data1 and pMAXRAW_data2. Maximum is the maximum reading that the sensor has ever detected since the reset.\\ | The function returns LSS_OK and writes the current maximums of [[sun_subsys| the solar sensor]] number **num** in the variables pMAXRAW_data1 and pMAXRAW_data2. Maximum is the maximum reading that the sensor has ever detected since the reset.\\ | ||
- | In case of errors on bus the function returns LSS_ERROR\\ | + | In case of errors on the bus, the function returns LSS_ERROR\\ |
- | In case of no power on [[sun_subsys|the solar sensor]] the function returns LSS_BREAK | + | In case of power failure, [[sun_subsys|the solar sensor]] function returns LSS_BREAK |
int sun_sensor_request_raw(uint16_t num, uint16_t *pRAW_data1, uint16_t *pRAW_data2); | int sun_sensor_request_raw(uint16_t num, uint16_t *pRAW_data1, uint16_t *pRAW_data2); | ||
The function returns LSS_OK and writes the current readings of [[sun_subsys| the solar sensor]] number **num** in the variables pRAW_data1 and pRAW_data2. \\ | The function returns LSS_OK and writes the current readings of [[sun_subsys| the solar sensor]] number **num** in the variables pRAW_data1 and pRAW_data2. \\ | ||
- | In case of errors on bus the function returns LSS_ERROR\\ | + | In case of errors on the bus, the function returns LSS_ERROR\\ |
- | In case of no power on [[sun_subsys|the solar sensor]] the function returns LSS_BREAK | + | In case of power failure, [[sun_subsys|the solar sensor]] function returns LSS_BREAK |
int sun_sensor_request_reset(uint16_t num); | int sun_sensor_request_reset(uint16_t num); | ||
- | Reboot [[sun_subsys|the solar sensor]] number **num** | + | Reboots [[sun_subsys|the solar sensor]] number **num** |
int sun_sensor_set_calibrate(uint16_t num,uint8_t mode); | int sun_sensor_set_calibrate(uint16_t num,uint8_t mode); | ||
Line 118: | Line 118: | ||
int sun_sensor_turn_off(uint16_t num); | int sun_sensor_turn_off(uint16_t num); | ||
- | Turn off [[sun_subsys|the solar sensor]] number **num** to reduce power consumtion | + | Turns off [[sun_subsys|the solar sensor]] number **num** to reduce power consumption |
int sun_sensor_turn_on(uint16_t num); | int sun_sensor_turn_on(uint16_t num); | ||
- | Turn on [[sun_subsys|the solar sensor]] number **num** | + | Turns on [[sun_subsys|the solar sensor]] number **num** |
int camera_take_photo(uint16_t num); | int camera_take_photo(uint16_t num); | ||
Line 127: | Line 127: | ||
int transceiver_get_state(uint16_t num); | int transceiver_get_state(uint16_t num); | ||
- | The function returns the current status of [[uhf_tx_subsys|the telemetry transmitter]] numer **num** (on/off) | + | The function returns the current status of [[uhf_tx_subsys|the telemetry transmitter]] number **num** (on/off) |
int transceiver_request_buff(uint16_t num,uint8_t *data); | int transceiver_request_buff(uint16_t num,uint8_t *data); | ||
Line 133: | Line 133: | ||
int transceiver_request_reset(uint16_t num); | int transceiver_request_reset(uint16_t num); | ||
- | Reboot [[uhf_tx_subsys|the telemetry transmitter]] number **num** | + | Reboots [[uhf_tx_subsys|the telemetry transmitter]] number **num** |
int transceiver_send(uint16_t tx_num,uint16_t rx_num,const uint8_t *data,uint16_t len); | int transceiver_send(uint16_t tx_num,uint16_t rx_num,const uint8_t *data,uint16_t len); | ||
Line 139: | Line 139: | ||
int transceiver_turn_off(uint16_t num); | int transceiver_turn_off(uint16_t num); | ||
- | Turn off [[uhf_tx_subsys|the telemetry transmitter]] number **num** to reduce power consumption | + | Turns off [[uhf_tx_subsys|the telemetry transmitter]] number **num** to reduce power consumption |
int transceiver_turn_on(uint16_t num); | int transceiver_turn_on(uint16_t num); | ||
- | Turn on [[uhf_tx_subsys|the telemetry transmitter]] number **num** | + | Turns on [[uhf_tx_subsys|the telemetry transmitter]] number **num** |
int transmitter_transmit_photo(uint16_t num, uint16_t nPhoto); | int transmitter_transmit_photo(uint16_t num, uint16_t nPhoto); | ||
Line 148: | Line 148: | ||
int transmitter_request_reset(uint16_t num); | int transmitter_request_reset(uint16_t num); | ||
- | Reboot [[hf_tx_subsys|the HF transmitter]] number **num** | + | Reboots [[hf_tx_subsys|the HF transmitter]] number **num** |
int transmitter_turn_off(uint16_t num); | int transmitter_turn_off(uint16_t num); | ||
- | Turn off [[hf_tx_subsys|the HF transmitter]] number **num** to reduce power consumption | + | Turns off [[hf_tx_subsys|the HF transmitter]] number **num** to reduce power consumption |
int transmitter_turn_on(uint16_t num); | int transmitter_turn_on(uint16_t num); | ||
- | Turn on [[hf_tx_subsys|the HF transmitter]] number **num** | + | Turns on [[hf_tx_subsys|the HF transmitter]] number **num** |
void dump_buffer(uint8_t *buf,size_t len); | void dump_buffer(uint8_t *buf,size_t len); |